This is a migrated thread and some comments may be shown as answers.

Programmatic Item

2 Answers 117 Views
ExpressionEditor
This is a migrated thread and some comments may be shown as answers.
Guru
Top achievements
Rank 2
Guru asked on 27 Jul 2011, 11:00 PM
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 Answers, 1 is accepted

Sort by
0
Guru
Top achievements
Rank 2
answered on 28 Jul 2011, 10:04 PM
Figured it out .

RadExpressionEditor.Item = new BusinessObject matching grid itemsource business object class.
0
Accepted
Dimitrina
Telerik team
answered on 29 Jul 2011, 10:05 AM
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,
Didie
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!

Tags
ExpressionEditor
Asked by
Guru
Top achievements
Rank 2
Answers by
Guru
Top achievements
Rank 2
Dimitrina
Telerik team
Share this question
or