BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Stefano,
Thanks for your interest in Syncfusion products.
Please follow the steps described in the below link to achieve your requirement.
UG Link: http://help.syncfusion.com/ug/js/default.htm#!documents/createyourfirstnavig.htm
We have created a simple sample for the same and attached in the link below.
Sample Link: NavigationDrawer.zip
Please check this and let us know if you need any further assistance.
Regards,
Arun Kumar S
Hi Stefano,
Thanks for the update.
Yes, We can navigate to the internal page by using ajax. You could find the below steps to achieve your scenario.
First, we have to create an internal pages from which we are going to get the content while clicking the items in the drawer. Once, we have done with creating pages we can render navigation drawer with mousedown event to handle the ajax post as in below the code snippets below.
[default.html]
<div class="navi"> <div id="target" class="icon-target"> Drawer </div> </div> <div id="navpane"> <ul> <li data-ej-imageclass="icon-home" data-ej-text="Home"></li> <li data-ej-imageclass="icon-profile" data-ej-text="Profile"></li> <li data-ej-imageclass="icon-photo" data-ej-text="Photos"></li> <li data-ej-imageclass="icon-locations" data-ej-text="Location"></li> </ul> </div> <!-- Default Page Content--> <div id="render"> This page displays the content of the item in drawer on click. </div>
<script type="text/javascript">
$(function () {
$("#navpane").ejNavigationDrawer({ enableListView: true, targetId: "target", listViewSettings: { mouseDown: 'slideMenuClick', persistSelection: true } });
}); </script> |
Now, we have to handle $.ajax() function to load the internal page content to the current page. Please find the below code snippets.
[script]
function slideMenuClick(args) { $.ajax({ 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 $('#render').html(response.responseText); $('#target').html(args.text);//To change the header based on the internal page content $("#navpane").ejNavigationDrawer("close"); }, error: function (error) { alert("error"); } })
} |
For your convenience, We have created a simple sample and attached it in the below link.
Sample Link: Sample.zip
Please check this and let us know if you need further assistance.
Regards,
Arun Kumar S
Hi Stefano,
Thanks for the update. We will wait to hear from you.
Regards,
Arun Kumar S