ASP.NET Slide Menu - Knowledge Base

« Back to Knowledge Base list

How to get SelectedId property of slide menu when used with splitter?

Q: How to get SelectedId property of slide menu in client-side when used with splitter?

A: SelectedId property for slidemenu at clientside. However you may make it using server-side:

    At bottom of page you may added this code:
        <script type="text/javascript">
                window.selectedid = "<%=oSlideMenu.SelectedId%>";
        </script>


    So you may get SelectedId by:
        var scorecardID = Splitter1.GetWindow('LeftContent').selectedid;