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

Programmatically changing CompositeFilterDescriptor records

1 Answer 75 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 26 Jul 2012, 03:43 PM
I am currently working on a project which uses the RadGridView, part of the required functionality is to hide and show records based on various user interaction with the grid, it would appear the best way to get this to work is using a CompositeFilterDescriptor and add and remove the filters as required.

My issue is as follows, the project has been written using MVVM and from all the reading i have done it doesn't seem possible to use binding for the indvidual FilterDescriptor lines, the RadGridView in question is contained with in a datatemplate (and there maybe more than one on the screen at one time) so it's can't be accessed directly from the code behind.

So my question is, is there anyway of changing the FilterDescriptor lines with out directly accessing the grid from the code behind.

 

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 27 Jul 2012, 07:21 AM
Hi,

 You could directly change the instance of the CompositeFilterDescriptor you have added to the FilterDescriptors collection of the GridView. 

Regards,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Steve
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or