Scrolling Menus and context menus

4 posts, 0 answers
  1. Jamest
    Jamest avatar
    41 posts
    Member since:
    Apr 2007

    Posted 01 Dec 2009 Link to this post

    Is there a way to provide a MS Windows like vertical over flow to menus/context menus by either scrolling in the same column or pushing the overflow of menus into more columns?
           Thanks,
      Jordan
  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 03 Dec 2009 Link to this post

    Hello Ender,

    I think adding a ScrollViewer in the RadMenuItem control template should be doable, however, I would recommend the easier approach, described here:
    http://blogs.telerik.com/valerihristov/posts/09-06-18/scrollable_menu_%e2%80%93_workaround_with_a_multi-column_menu_and_radcontrols_for_silverlight.aspx

    We have a running example here:
    http://demos.telerik.com/silverlight/#Menu/MultiColumnMenu

    Sincerely yours,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Jamest
    Jamest avatar
    41 posts
    Member since:
    Apr 2007

    Posted 03 Dec 2009 Link to this post

    Valeri Hristov,
      Thank you for the reply. This is great...one more question is there a way to set the MaxHeight of the wrap panel's in the ItemContainerStyle or to  bind with the height of the window?
             Thanks,
                   Jordan
  5. Jamest
    Jamest avatar
    41 posts
    Member since:
    Apr 2007

    Posted 03 Dec 2009 Link to this post

    I suppose I found a way to do this for now.

     

    <Style x:Key="ItemStyle" TargetType="telerikNavigation:RadMenuItem">  
                <Setter Property="ItemsPanel">  
                    <Setter.Value> 
                        <ItemsPanelTemplate> 
                            <telerik:RadWrapPanel Margin="0,0,0,20" Orientation="Vertical" MaxHeight="{Binding ElementName=LayoutRoot, Path=ActualHeight}" /> 
                        </ItemsPanelTemplate> 
                    </Setter.Value> 
                </Setter> 
            </Style> 

    Thank you again for your help.

Back to Top