Programmatic Item

3 posts, 1 answers
  1. Guru
    Guru avatar
    112 posts
    Member since:
    Jul 2011

    Posted 27 Jul 2011 Link to this post

    Do you have any documentation on initializing and expression editor in code-behind and binding its Item proprty to either an ObservableCollection<T> or a datatable?

    I am going to use it to filter a radgridview but the gridview is generated dynamically at runtime so I can't use XAML to bind the grid data to the expression editor.

    Giving the user the option to use RadDataFilter or RadExpressionEditor to filter the same RadGridView so if you have anything on that particular scenario it would be appreciated.

    I assume I will have to maybe accomplish it with one or the other unbound. Such as binding the grids itemsource to the datafilters filteredsource and changing the datafilters source after the expressioneditors changed event is fired... etc... please advise if there is a better way.
  2. Guru
    Guru avatar
    112 posts
    Member since:
    Jul 2011

    Posted 28 Jul 2011 Link to this post

    Figured it out .

    RadExpressionEditor.Item = new BusinessObject matching grid itemsource business object class.
  3. Answer
    Dimitrina avatar
    3769 posts

    Posted 29 Jul 2011 Link to this post

    Hello Zack,

    Yes, that is right.

    Regarding the documentations - for the future we are planning to include additional articles about RadExpressionEditor based on the questions that we receive from clients.

    If you have any other questions, please do not hesitate to contact us.

    Kind regards,
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top