Expand Selected Root Menu on Page Load

1 posts, 0 answers
  1. Mike_T
    Mike_T avatar
    37 posts
    Member since:
    Aug 2006

    Posted 20 Apr 2017 Link to this post

    I have the RadMenu below and i am selecting the RadMenuItem from Code behind. the menu is only 2 Levels.

    I would like to Expand the Root Level of the Selected Menu

    Please can you advise?

     

    Thanks

    <telerik:RadMenu runat="server" RenderMode="Auto" ID="RadMenu" ExpandAnimation-Type="None" CssClass="RadMenu_MyMenU" EnableRoundedCorners="true" EnableShadows="true">
            <Items>
                <telerik:RadMenuItem Text="Home" ID="Home" runat="server" ToolTip="Home" NavigateUrl="../Admin/Default.aspx" />
                <telerik:RadMenuItem Text="Front Page" ID="Frontpage" runat="server" ToolTip="FrontPage">
                    <Items>
                        <telerik:RadMenuItem Text="Slider" ID="slider" runat="server" ToolTip="Slider" NavigateUrl="../Admin/Manage_Slider.aspx" />
                        <telerik:RadMenuItem Text="Links" ID="Links" runat="server" ToolTip="Links" NavigateUrl="../Admin/Manage_Links.aspx" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Menu & Pages" ID="menuandpages" ToolTip="Menu & Pages" runat="server">
                    <Items>
                        <telerik:RadMenuItem Text="Menu Items" ID="menuitems" runat="server" ToolTip="Menu Items" NavigateUrl="../Admin/Manage_Menu.aspx" />
                        <telerik:RadMenuItem Text="Pages" ID="pages" runat="server" ToolTip="Pages" NavigateUrl="../Admin/Manage_Page.aspx" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Media" ToolTip="Media" ID="media" runat="server">
                    <Items>
                        <telerik:RadMenuItem Text="Announcements" id="Announcements" runat="server" ToolTip="Announcements" NavigateUrl="../Admin/Manage_Announcement.aspx" />
                        <telerik:RadMenuItem Text="News" ID="News" runat="server" ToolTip="News" NavigateUrl="../Admin/Manage_News.aspx" />
                        <telerik:RadMenuItem Text="E-Magazine" id="EMagazine" runat="server" ToolTip="E-Magazine" NavigateUrl="../Admin/Manage_EMagazine.aspx" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Courses" ToolTip="Courses" ID="coursesmodule" runat="server">
                    <Items>
                        <telerik:RadMenuItem Text="Course Collections" ID="CourseCollections" ToolTip="Course Collections" NavigateUrl="../Admin/Manage_CourseCollections.aspx" />
                        <telerik:RadMenuItem Text="Courses" ToolTip="Courses" ID="Courses" NavigateUrl="../Admin/Manage_Courses.aspx" />
                        <telerik:RadMenuItem Text="Course Chapters" ID="CourseChapters" ToolTip="Course Chapters" NavigateUrl="../Admin/Manage_CourseChapters.aspx" />
                        <telerik:RadMenuItem Text="Course Materials" ID="CourseMaterials" ToolTip="Course Materials" NavigateUrl="../Admin/Manage_CourseMaterials.aspx" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Administration" ToolTip="Administration">
                    <Items>
                        <telerik:RadMenuItem Text="Users" ToolTip="Users" NavigateUrl="../Admin/Manage_Users.aspx" />
                        <telerik:RadMenuItem Text="Roles" ToolTip="Roles" NavigateUrl="../Admin/Manage_Roles.aspx" />
                        <telerik:RadMenuItem Text="Permissions" ToolTip="Permissions" NavigateUrl="../Admin/Manage_Permissions.aspx" />
                        <telerik:RadMenuItem Text="User Roles" ToolTip="User Roles" NavigateUrl="../Admin/Manage_UserRoles.aspx" />
                    </Items>
                </telerik:RadMenuItem>
                <telerik:RadMenuItem Text="Logout" NavigateUrl="../Admin/LogOut.aspx" />
            </Items>
        </telerik:RadMenu>
Back to Top