Disable Filtering for child elements

3 posts, 1 answers
  1. Chris
    Chris avatar
    13 posts
    Member since:
    Dec 2011

    Posted 09 Aug 2017 Link to this post


    I've created grid with a parent and 2 and 3 child elements like the following sample: http://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarative-relations/defaultcs.aspx

    I would like to enable filtering for the parent items but not for any of the children elements.  I've enabled filtering in the grid using AllowFilteringByColumn="True" and in the children columns I've set them all to AllowFiltering="false".  This removes the filter from the child elements however it leaves an ugly bar underneath the column header where the filters normally would be.

    Is there some way to disable this and only have filtering applied to the parent?


  2. Answer
    Eyup avatar
    4078 posts

    Posted 14 Aug 2017 Link to this post

    Hello Chris,

    You can achieve this requirement by setting the mentioned property on the inner level:
    <telerik:GridTableView AllowFilteringByColumn="false">

    I hope this will prove helpful.

    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Chris
    Chris avatar
    13 posts
    Member since:
    Dec 2011

    Posted 15 Aug 2017 Link to this post

    Perfect thanks Eyup - exactly what I was after
Back to Top