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

SelfHierarchy / Filtering

1 Answer 43 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christian
Top achievements
Rank 1
Christian asked on 16 Jun 2011, 12:57 PM
Dear Telerik-Support

I set up a RadGrid with SelfHierarchySettings. Everything works fine. The hierarchy will shown as expected.

Then I allow filtering on some columns. The problem is that the default filter (it.PrentId == null from Page_Load()) to show only the root items will be lost and according to this all items (also the child items) will be shown in the grid after the user fire a column filter.

How can I add the default filter (it.PrentId == null from Page_Load()) to all filter events that are fired against the grid/datasource? So witch  event is the right one to manipulate the filterExpression or filterExpressions to add a default filter before the datasource will be filtered based on this manipulated filters.

Please see my attched files.

Kind regards,
Chrsitian

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 22 Jun 2011, 09:24 PM
Hello Uwe,

You can find a sample project that demonstrates how to implement this functionality in the following forum thread:
RadGrid Self-referencing Hierarchy - filtering problem

I hope this helps.

Best regards,
Daniel
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Grid
Asked by
Christian
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or