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

2 posts, 0 answers
  1. tony
    tony avatar
    7 posts
    Member since:
    Oct 2010

    Posted 18 Sep 2011 Link to this post

    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
     
  2. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2477 posts

    Posted 19 Sep 2011 Link to this post

    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 >>

Back to Top