SelfHierarchy / Filtering

2 posts, 0 answers
  1. Christian Pardun
    Christian Pardun avatar
    112 posts
    Member since:
    May 2010

    Posted 16 Jun 2011 Link to this post

    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,
  2. Daniel
    Daniel avatar
    4933 posts

    Posted 22 Jun 2011 Link to this post

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

  3. DevCraft R3 2016 release webinar banner
Back to Top