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

issue with Filtering Columns from Code-behind, showing in UI

1 Answer 45 Views
GridView
This is a migrated thread and some comments may be shown as answers.
tony
Top achievements
Rank 1
tony asked on 19 Sep 2011, 03:29 AM
Hi,

I'm trying to implement the filtering from code-behind and I got it to successfully filter using the following:

ColumnFilterDescriptor cfd = new ColumnFilterDescriptor(mainGrid.Columns["SomeColumn"]);
 
cfd.FieldFilter.FieldName = col.Member;
cfd.DistinctFilter.DistinctValues.Add(5);
mainGrid.FilterDescriptors.Add(cfd);

while it works, the UI display does not properly filter it. I've attached an image to show the issue.

I've searched the forums a few times and it looks like the DistinctValues of the RadGridView is used to generate the list of checkboxes.. however, I can't find a place where I can select/make the checkboxes check according to the filters that is being applied.

Thanks!
Tony
 

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 19 Sep 2011, 11:33 AM
Hi Tony,

Is it possible to send us a very small sample project that demonstrates the wrong behavior and we will examine it and debug it to see what is going on?

All the best,
Ross
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
tony
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or