We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Essential JS2

Syncfusion jQuery based widgets are no longer in active development. Switch to our pure JavaScript based next generation Essential JS 2 library.

Syncfusion Feedback

How to navigate the internal pages while clicking the list item in the navigation drawer?

Platform: jQuery |
Control: ejNavigationDrawer

You can navigate to the internal page by using ajax. Refer to the following steps.

First, create an internal page from where you can get the content on clicking the items in the drawer. Then, render navigation drawer with mousedown event to handle the ajax post as in the following code example.


<div class="navi">

        <div id="target" class="icon-target">




    <div id="navpane">


            <li data-ej-text="Home"></li>

            <li data-ej-text="Profile"></li>

            <li data-ej-text="Photos"></li>

            <li data-ej-text="Location"></li>



    <!-- Default Page Content-->

    <div id="render">

        This page displays the content of the item in drawer on click.


    <script type="text/javascript">

        $(function () {

            $("#navpane").ejNavigationDrawer({ enableListView: true, targetId: "target", listViewSettings: { mouseDown: 'slideMenuClick', persistSelection: true } });






            background-image: url("http://js.syncfusion.com/ug/web/content/drawer/sprite.png");




             background-position: 0 -338px;

             font-size: 34px;

             height: 48px;

             position: absolute;

             text-indent: 50px;

             top: -3px;

             width: 48px;

             z-index: 3;




            background: none repeat scroll 0 0 #C4C4B4;

            color: #fff;

            height: 45px;

            padding-left: 5px;

            width: 100%;




            background: none repeat scroll 0 0 #ece9d8;




Now, you need to handle $.ajax() function to load the internal page content to the current page. Refer to the following code example.


function slideMenuClick(args) {


                url: "ajaxpages/" + args.text + ".html", //To get internal page url

                type: "POST",

                success: function (e, status, response) {

                    //Success handler of content loading while list click happens


                    $('#target').html(args.text);//To change the header based on the internal page content



                error: function (error) {









You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile