RadGridView hierarchical view filters

2 posts, 0 answers
  1. ceetee
    ceetee avatar
    4 posts
    Member since:
    Sep 2012

    Posted 28 Jul 2011 Link to this post

    I'm using a grid which is using a hierarchical view. I'm trying to apply a filter to one of the columns on the parent grid, which contains a simple Y/N character.

    I've constructed the filter in the same way as I would on a simple grid view (on which it does what I ask of it) This is the code:

    rgvResults.MasterTemplate.EnableFiltering = True
    Dim filter As New FilterDescriptor()
    filter.PropertyName = "attrib_exists"
    filter.[Operator] = FilterOperator.IsEqualTo
    filter.Value = "Y"
    filter.IsFilterEditor = True
    rgvResults.MasterTemplate.Columns("attrib_exists").FilterDescriptor = filter

    The filter on the parent column appears on the grid and is populated once I apply the filter. However the data doesn't change. Infact, manually adjusting any of the column filters has no influence over the data at all.

    Could someone please help me with where i'm going wrong? Like I said, on a simple grid, it works perfectly, I just cant get the parent/child grid to work correctly. I've spent the afternoon trying various things from example code but still no luck!

    nb. the grid is bound to a datatable datasource.

    Thanks in advance


    Update: I fixed this by removing the grid from the form and adding a new one?! bizarre.
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 02 Aug 2011 Link to this post

    Hello Chris,

    I am glad to hear that you have solved your issue.

    Do not hesitate to contact us if you have further questions or issues.

    All the best,
    Julian Benkov
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
Back to Top