This is a migrated thread and some comments may be shown as answers.

Scrollbars on nested RadMenu

3 Answers 64 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jeremy Crocker
Top achievements
Rank 1
Jeremy Crocker asked on 18 Sep 2009, 04:11 PM
I am not able to get functioning scrollbars on a radMenu nested inside of a radpanelbar.  Here is the code:  Any help you could give would be appreciated!

//code behind

 

 

 RadPanelItem panelItem = (RadPanelItem)RadPanelBar2.FindItemByValue("templateHolder");  
            panelItem.Expanded = true;  
            panelItem.ChildGroupHeight = Unit.Pixel(150);  
 
 
            RadMenu myMenu = new RadMenu();  
            myMenu.Width = Unit.Percentage(100);  
 
 
            //myMenu.Height = Unit.Pixel(500);  
            myMenu.DefaultGroupSettings.Height = Unit.Percentage(100);  
            myMenu.EnableRootItemScroll = true;  
            //myMenu.EnableAutoScroll = true;  
 
            myMenu.AutoScrollMinimumHeight = 150;  
            myMenu.Flow = ItemFlow.Vertical;  
            myMenu.DataTextField = "Text";  
            myMenu.DataFieldID = "ID";  
            myMenu.DataFieldParentID = "ParentId";  
            myMenu.DataSource = siteData;  
            myMenu.DataBind();  
 
            panelItem.Controls.Add(myMenu);   


<telerik:RadPanelBar ID="RadPanelBar2" runat="server" Width="350px" Height="400px" 
                ExpandMode="FullExpandedItem" ExpandAnimation-Type="none" 
                CollapseAnimation-Type="none" > 
                <Items> 
                    <telerik:RadPanelItem runat="server" Text="Major" > 
                          
                        <Items> 
                            <telerik:RadPanelItem runat="server" Value="templateHolder">  
                            </telerik:RadPanelItem> 
                        </Items> 
                    </telerik:RadPanelItem> 
                </Items> 
               <%-- <CollapseAnimation Duration="100" Type="None" /> 
                <ExpandAnimation Duration="100" Type="None" />--%> 
            </telerik:RadPanelBar> 
 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 23 Sep 2009, 09:31 AM
Hi Jeremy,

In order to achieve your goal, you will have to set fixed height to myMenu.DefaultGroupSettings.Height.

Greetings,
Paul
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.
0
Jeremy Crocker
Top achievements
Rank 1
answered on 23 Sep 2009, 12:22 PM
Paul,

Thanks for the info.  I've already tried that and I'm able to get scrollbars on the menu but they don't actually allow the menu to scroll up and down.  I'm wondering if the z-index of the menu is higher than the z-index of the panelbar???

Thanks for your help.
0
Paul
Telerik team
answered on 23 Sep 2009, 01:40 PM
Hi Jeremy,

I think it will be best if you can open a support ticket and send us a simple running project (incl. your custom skin, CSS, images, DB backup if needed and so on) demonstrating the problem (and step-by-step instructions on doing so). In that way we can reproduce and pinpoint the problems you're facing on our side, understand the logic of your application and provide a solution.

Regards,
Paul
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.
Tags
Menu
Asked by
Jeremy Crocker
Top achievements
Rank 1
Answers by
Paul
Telerik team
Jeremy Crocker
Top achievements
Rank 1
Share this question
or