Filter in Hierarchical Grid

2 posts, 0 answers
  1. Darko
    Darko avatar
    27 posts
    Member since:
    Sep 2008

    Posted 14 Oct 2011 Link to this post


    i am looking at the Samples for the latest Release (Q2 2011 SP1) of the tools and 
    I found the GridView/Custom Filtering sample very usefull.
    However, my Grid is bound to the Data using the  AutoGenerateHierarchy feature.
    The Grid is bound to  the BindingSource which is bound to a BindingList<T> which
    is basically 3 Levels deep. The binding works great... I get 3 levels hierachical Grid.

    I would love to apply the mentioned sample of Custom Formatting to the whole Grid Data,
    e.g. the Text entered in the Filter TextBox should be searched in each Column and in each Row in every Level
    of the hierarchy. Is that possible? If not, do you have a suggestion for me how to filter the Grid without
    drilling down manually in every Level of it?

    Thanks and best regards,

  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 19 Oct 2011 Link to this post

    Hi Darko,

    You can use the codebase from our Demo Application to make a custom filtering to the all levels in hierarchy mode. The CustomFiltering event is raised for every GridViewTemplate. The important thing in this scenario is to call Refresh method of MasterTemplate to cause event firing for every text change:

    private void filterTextBox_TextChanged(object sender, EventArgs e)

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

    Julian Benkov
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

Back to Top