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

RadMenu inside of RadSplitter

3 Answers 133 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 13 May 2009, 07:29 PM
I'm trying to use them a RadMenu inside of a RadSplitter/RadPane and am having issues trying to get the content to fill into the correct pane -- can someone please lend a quick hand? I've attempted to adapt a sample and am programmatically populating a radmenu (called RadMenu2) with items and have set their respective targets so that when they click on the menu items they open in their respective window panes.

        <div id="ParentDivElement" style="height: 100%; background-color: #000000;"
            <telerik:RadSplitter ID="MainSplitter" runat="server" Height="100%" Width="100%" 
                Orientation="Horizontal" Skin="Black" FullScreenMode="True"
                <telerik:RadPane ID="TopPane" runat="server" Height="5" MinHeight="0" MaxHeight="5" 
                    Scrolling="none"
                    <!-- Place the content of the pane here --> 
                </telerik:RadPane> 
                <telerik:RadSplitBar ID="RadsplitbarTop" runat="server" CollapseMode="Forward" /> 
                <telerik:RadPane ID="MainPane" runat="server" Scrolling="none" MinWidth="500"
                    <telerik:RadSplitter ID="NestedSplitter" runat="server" Skin="Black" LiveResize="false"
                        <telerik:RadPane ID="LeftPane" runat="server" Width="200" MinWidth="150" MaxWidth="400"
                            <!-- Place the content of the pane here --> 
                             <telerik:RadMenu CollapseAnimation-Type="None" ID="RadMenu2"  runat="server" Width="100%"  
                Flow="Vertical" Height="100px" OnClientItemClicked="clickHandler" BackColor="White" BorderStyle="None" Skin="Black" ForeColor="Black"  
                                style="background-color: #000000"
        <Items> 
            <telerik:RadMenuItem Width="100%" id="lblLoginStatus" NavigateUrl="signout.aspx" runat="server"
                <GroupSettings ExpandDirection="Right"></GroupSettings> 
            </telerik:RadMenuItem> 
        </Items> 
            <CollapseAnimation Type="None" /> 
    </telerik:RadMenu> 
                        </telerik:RadPane> 
                        <telerik:RadSplitBar ID="VerticalSplitBar" runat="server" CollapseMode="Forward" /> 
                        <telerik:RadPane ID="ContentPane" ContentUrl="home.aspx" runat="server"
                            <!-- Place the content of the pane here --> 
                        </telerik:RadPane> 
                    </telerik:RadSplitter> 
                </telerik:RadPane> 
            </telerik:RadSplitter></div

I was hoping that this link would spawn inside of my client pane, but it doesn't seem to be working - it either spawns in the same window or spawns in a new window -- I'm assuming that it cannot find the ContentPane for some reason

                Dim MenuItem3 As New RadMenuItem 
                MenuItem3.Text = "Sign up/Register" 
                MenuItem3.Value = "Sign up/Register" 
                MenuItem3.NavigateUrl = "/register.aspx" 
                MenuItem3.Target = ContentPane.ClientID 
                MenuItem3.Width = "104" 

Any ideas where I'm going wrong?TIA!

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 16 May 2009, 12:58 PM
Hi Michael,

As far as I can see from your code, you want to dynamically create a new menu item and to add it to the RadMenu. If so, you should use the following syntax:

        Dim MenuItem3 As New RadMenuItem()  
        RadMenu2.Items.Add(MenuItem3)  
        MenuItem3.Text = "Sign up/Register" 
        MenuItem3.Value = "Sign up/Register" 
        MenuItem3.NavigateUrl = "/register.aspx" 
        MenuItem3.Target = ContentPane.ClientID  
        MenuItem3.Width = "104" 

After I corrected your code in this mannetr, everything started working as expected.

Kind regards,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Michael
Top achievements
Rank 1
answered on 19 May 2009, 04:18 PM
Svetlina, unfortunately this does not solve the problem.  It keeps opening in a new frame (in firefox and IE)?

Any other thoughts?
0
Svetlina Anati
Telerik team
answered on 22 May 2009, 09:00 AM
Hi Michael,

The provided code with the applied modification works fine on my side and that is why I assume that something else which is missing is causing the issue on your side. That is why I believe that the best way to proceed is that you prepare a sample fully runnable reproduction demo which isolates the problem, open a new support ticket and send it to me along with detailed reproduction steps and explanations, Once I receive it and I am able to reproduce the issue locally, I will modify it in order to meet your requirements and you will be able to apply the same logic in your original application.

All the best,
Svetlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Splitter
Asked by
Michael
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Michael
Top achievements
Rank 1
Share this question
or