Hi,
I'd like to set my custom filter in datagrid with some values without opening filter pop-up.
As far as I understand for that purpose I have to call somehow method Prepare(GridViewBoundColumnBase gridViewColumn) of my filter to initialize my filter.
Can you please tell me or better show me, how can I clever handle such situation.
Thank u in advance,
Julian
I'd like to set my custom filter in datagrid with some values without opening filter pop-up.
As far as I understand for that purpose I have to call somehow method Prepare(GridViewBoundColumnBase gridViewColumn) of my filter to initialize my filter.
Can you please tell me or better show me, how can I clever handle such situation.
Thank u in advance,
Julian
5 Answers, 1 is accepted
0
Hello Julian,
You can define a ColumnFilterDescriptor in the code and add it to the FilterDescriptors collection of the RadGridView. Thus it will pre-filter the data. You can see this help topic on the matter.
All the best,
Veselin Vasilev
the Telerik team
You can define a ColumnFilterDescriptor in the code and add it to the FilterDescriptors collection of the RadGridView. Thus it will pre-filter the data. You can see this help topic on the matter.
All the best,
Veselin Vasilev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0

Julian
Top achievements
Rank 1
answered on 13 Dec 2010, 10:58 AM
Could u please provide me with a couple of lines of code ?
thx.
Julian
thx.
Julian
0
Hi Julian,
I must have given you a wrong link, please excuse me. The correct one is this:
http://www.telerik.com/help/wpf/radgridview-filtering-column-filter-descriptors.html
Attached you can find a sample project.
Regards,
Veselin Vasilev
the Telerik team
I must have given you a wrong link, please excuse me. The correct one is this:
http://www.telerik.com/help/wpf/radgridview-filtering-column-filter-descriptors.html
Attached you can find a sample project.
Regards,
Veselin Vasilev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0

Julian
Top achievements
Rank 1
answered on 13 Dec 2010, 11:28 AM
Thank you.
But in my situation I have custom filter control. The implementation of that is located in another file - CustomFilterControl.
it means that I can't call directly the grid from my control.
thx.
Julian
But in my situation I have custom filter control. The implementation of that is located in another file - CustomFilterControl.
it means that I can't call directly the grid from my control.
thx.
Julian
0
Hello Julian,
The custom filter control should know about the column it is in. Having the column, you can access the gridview via its DataControl property.
Regards,
Veselin Vasilev
the Telerik team
The custom filter control should know about the column it is in. Having the column, you can access the gridview via its DataControl property.
Regards,
Veselin Vasilev
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF