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

Disable Filtering for child elements

2 Answers 87 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 09 Aug 2017, 12:22 PM

Hello,

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?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Eyup
Telerik team
answered on 14 Aug 2017, 05:50 AM
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.

Regards,
Eyup
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.
0
Chris
Top achievements
Rank 1
answered on 16 Aug 2017, 02:38 AM
Perfect Eyup - exactly what I was after
Tags
Grid
Asked by
Chris
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Chris
Top achievements
Rank 1
Share this question
or