Custom RadListFilterPopup > Add new RadMenuItem

3 posts, 1 answers
  1. Grégory
    Grégory avatar
    4 posts
    Member since:
    Apr 2015

    Posted 31 Aug 2015 Link to this post


    I need to customize the filter popup to add some new choices.

    I've tried to add item this way :

            private void radGrid_FilterPopupRequired(object sender, FilterPopupRequiredEventArgs e)
                var popUp = e.FilterPopup as RadListFilterPopup;
                if (popUp == null)

                var rmiSortByColor = new RadMenuItem("Sort by color");
                popUp.Items.Insert(0, rmiSortByColor);​



    Unfortunally, as you can see in the provided screenshot, the item is very huge, and the height increase proportionally when I resize the popup.

    I have the exact same problem when I add a simple separator.


    Did I miss something ?

  2. Answer
    Dimitar avatar
    1929 posts

    Posted 02 Sep 2015 Link to this post

    Hi Gregory,

    Thank you for writing.

    You should just set the StretchVertically property of the item to false:
    void radGridView1_FilterPopupInitialized(object sender, Telerik.WinControls.UI.FilterPopupInitializedEventArgs e)
        RadListFilterPopup popup = e.FilterPopup as RadListFilterPopup;
        if (popup != null)
            var rmiSortByColor = new RadMenuItem("Sort by color") { StretchVertically = false };
            popup.Items.Insert(0, rmiSortByColor);​

    Please let me know if there is something else I can help you with. 

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Grégory
    Grégory avatar
    4 posts
    Member since:
    Apr 2015

    Posted 02 Sep 2015 in reply to Dimitar Link to this post

    Thank you so much, it works fine !
Back to Top