Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WPF > Menu > ScrollBar in RadMenu.

Not answered ScrollBar in RadMenu.

Feed from this thread
  • Manishkumar Master avatar

    Posted on May 25, 2011 (permalink)

    Hi,
    How to implement scroll bar in the menuitem.
    let say I need at max of 10 items in the menuitem popout, after that scrollbar should be visible in the popout.

    Thanks.

    Reply

  • Dani Dani admin's avatar

    Posted on May 26, 2011 (permalink)

    Hello Manishkumar,

    You can add a ScrollViewer in the ControlTemplate of the RadMenu to take advantage of the scrolling functionality when needed. Take a look at the attached sample project with a scrollable RadContextMenu. The approach you need to use for the RadMenu is the same - add a ScrollViewer around the ItemsPresenter. Make sure that your ScrollViewer does have a MaxHeight set to have the scrolling working properly.

    I hope this helps.

    Kind regards,
    Dani
    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

  • Manishkumar Master avatar

    Posted on May 30, 2011 (permalink)

    Hi Dani,
    Thanks for the reply, but its not working the same way for Rad Menu as it is working for RadContextMenu.

    Might be as I'm using the HierarchicalDataTemplate, causing the problem.

    The scroll bar appears but not on the popup menu but on the main menu.

    Please provide a sample example for RadMenu having HierarchicalDataTemplate.

    Thanks.

    Reply

  • Dani Dani admin's avatar

    Posted on Jun 1, 2011 (permalink)

    Hi Manishkumar,

    Using a HierarchicalDataTemplate does not harm the scrolling functionality at all. The issue here is that the ScrollViewer needs to be placed with regards to the  type of menu items that will be scrolled. For example, if you want the top level submenu items to be scrollable, you need to add a ScrollViewer to the TopLevelHeaderTemplate of the RadMenu control.

    I prepared a sample that fits your scenario and illustrates the scrolling of the top level submenu items of RadMenu. I hope this will be helpful.

    Best wishes,
    Dani
    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 / WPF > Menu > ScrollBar in RadMenu.