c# 4.0 - PageNavigation Buttons are not working in Jqgrid. Below is the my code -
below code. in navigation buttons not working. before loading grid buttons enabled after loading grid buttons in diabled. can 1 me out this.thanks in advance
<link href="assets/themes/blitzer/jquery-ui.css" rel="stylesheet" /> <link href="assets/themes/blitzer/ui.jqgrid.css" rel="stylesheet" /> <link href="bootcss/bootstrap.min.css" rel="stylesheet" /> <script src="assets/themes/blitzer/jquery-2.2.3.min.js"></script> <script src="jqgrid/grid.locale-en.js"></script> <script src="assets/themes/blitzer/jquery.jqgrid.min.js"></script> <script type="text/javascript"> $(document).ready(function () { $("#gdcustomers").jqgrid({ loaderror: function (xhr, status, error) { alert('load error: ' + error); }, mtype: 'get', ajaxgridoptions: { contenttype: 'application/json; charset=utf-8' }, url: "userhandler.ashx", datatype: 'json', colnames: ['customer id', 'first name', 'last name', 'mobile number', 'email id', 'created date', 'channel'], colmodel: [ { name: 'customerid', index: 'customerid', key: true, width: 30 }, { name: 'firstname', index: 'firstname', width: 30 }, { name: 'lastname', index: 'lastname', width: 30 }, { name: 'phonenumber', index: 'phonenumber', width: 30 }, { name: 'emailid', index: 'emailid', width: 70 }, { name: 'createddate', index: 'createddate', width: 50 }, { name: 'channelid', index: 'channelid', width: 30 } ], gridview: true, rownum: 20, rowlist: [20, 20, 30], pager: '#gdcustomerspager', viewrecords: true, autowidth: true, height: 350, caption: "json example", }).navgrid("#gdcustomerspager", { view: false }, { edit: false, add: false, del: false, search: false }); $("#gdcustomers").jqgrid('setgridparam', { datatype: 'json' }).trigger('reloadgrid'); }); </script>
Comments
Post a Comment