RadMenu inside of RadSplitter

4 posts, 0 answers
  1. Michael
    Michael avatar
    12 posts
    Member since:
    May 2008

    Posted 13 May 2009 Link to this post

    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!
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 16 May 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael
    Michael avatar
    12 posts
    Member since:
    May 2008

    Posted 19 May 2009 Link to this post

    Svetlina, unfortunately this does not solve the problem.  It keeps opening in a new frame (in firefox and IE)?

    Any other thoughts?
  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 22 May 2009 Link to this post

    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.
Back to Top