How create custom treeview for RadListFilterPopup?

4 posts, 0 answers
  1. Stanley
    Stanley avatar
    32 posts
    Member since:
    Apr 2012

    Posted 08 Jun 2012 Link to this post

    First, I have prepared my data in a radTreeView control.
    Then, how assign treeview to RadListFilterPopup?

    Please refer the pciture from attachment.
    Any way can be done?

    RadHostItem h = new RadHostItem(this.radTreeView1);

    void radGridView1_FilterPopupRequired2(object sender, Telerik.WinControls.UI.FilterPopupRequiredEventArgs e)
        if (e.Column.Name == "Store")
            e.FilterPopup = new RadListFilterPopup(this.radTreeView1, true);
  2. Stefan
    Stefan avatar
    2911 posts

    Posted 13 Jun 2012 Link to this post

    Hello Stanley,

    Thank you for writing.

    The tree in RadListFilterPopup cannot be replaced, however it can be accessed and modified. Here is a sample, where I am clearing all nodes and I am adding new ones:
    void radGridView1_FilterPopupRequired(object sender, Telerik.WinControls.UI.FilterPopupRequiredEventArgs e)
        if (e.Column.Name == "Name")
            RadListFilterPopup popup = e.FilterPopup as RadListFilterPopup;
            for (int i = 0; i < 10; i++)
                popup.MenuTreeElement.TreeView.Nodes.Add("Node Name " + i);

    I hope this helps. Let us know if you have any other questions.
    the Telerik team
    RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
  3. Alec
    Alec avatar
    3 posts
    Member since:
    Apr 2017

    Posted 24 Apr 2020 in reply to Stefan Link to this post

    I have tried using this technique to remove the pre-existing tree view nodes and add new nodes, but when I select one of the new nodes and click the OK button to filter based on the new node, nothing happens.  Do I need to add something else to get the filter to actually work?


  4. Dess | Tech Support Engineer, Sr.
    Dess | Tech Support Engineer, Sr.  avatar
    4172 posts

    Posted 28 Apr 2020 Link to this post

    Hello, Alec,

    Your question has already been answered in the other thread you have posted on the same topic. Please, see our answer there for more information.
    We kindly ask you to use just one thread for a specific problem to contact us. Posting the same questions numerous times slows down our response time because we will need to review and address two or more tickets instead of one. Moreover, threads are handled according to license and time of posting, so if it is an urgent problem, we suggest you use a support ticket, which would be handled before a forum thread.

    Thank you for your understanding.

    Dess | Tech Support Engineer, Sr.
    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
Back to Top