Context menu Empty area problem

2 posts, 0 answers
  1. saurabh(GV433015)
    saurabh(GV433015) avatar
    13 posts
    Member since:
    Sep 2010

    Posted 22 Apr 2011 Link to this post


    Hello Team,

    I m using RadContextMenu in my tree node control.
    i have 4 menuitem in Context Menu. on certain condition i have to hide a Item. i m using .Visibility = ElementVisibility.Visible; property to hide\ show the menu item. but when i m hiding menu item , it is showing empty space in my RadContextMenu .
    Kindly provide the solution to hide empty space(i do't want to remove item from RadContextMenu).Please refer the attachment.


    Thanks and Regards,
    Saurabh dubey
  2. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 22 Apr 2011 Link to this post

    Hi saurabh,

    In order to get the desired effect, you should set the Visibility property of context menu item in question to Collapsed. This will exclude the item from the layout calculations:
    this.radMenuItem1.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;

    I hope this helps.

    All the best,
    Nikolay
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top