Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Menu, Application Menu, Context Menu > Context menu Empty area problem

Not answered Context menu Empty area problem

Feed from this thread
  • saurabh(GV433015) avatar

    Posted on Apr 22, 2011 (permalink)


    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
    Attached files

    Reply

  • Nikolay Nikolay admin's avatar

    Posted on Apr 22, 2011 (permalink)

    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Menu, Application Menu, Context Menu > Context menu Empty area problem
Related resources for "Context menu Empty area problem"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]