1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / RadMenu Item Width

RadMenu Item Width

2 posts, 0 answered
  1. Aret
    Aret avatar
    8 posts
    Registered:
    10 Oct 2011
    24 Oct 2011
    Link to this post
    I created a radmenu that dynamically loads its items from a database.  I want to change the width of certain items that the radmenu dynamically creates.  How would I go about this programmatically in vb...?

    So far I just figured out how to set the third rad menu item "visible = false" by doing this....

        Protected Sub MainMenu_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MainMenu.Load
            MainMenu.Items(2).Visible = False

        End Sub


    HOWEVER, I want to change the width of the rad menu item instead.  I tried this code below but it didnt work....

        Protected Sub MainMenu_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MainMenu.Load
            MainMenu.Items(2).Width = "50px"

        End Sub


    I know I am very close... does anyone have any suggestions on how to change the width....

    Thanks
  2. Stanislav Velikov
    Stanislav Velikov avatar
    1113 posts
    Registered:
    18 Aug 2017
    27 Oct 2011
    Link to this post
    Hi Aret,

    Can you try defining width like this.
    RadMenu1.Items[0].Items[0].Width = Unit.Pixel(200);
    RadMenu1.Items[2].Width = Unit.Pixel(50);


    Best wishes,
    Stanislav Velikov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered