function initGrid() { oTable = $('#grid').dataTable({ 'bProcessing': false , 'bFilter': false ,'bSort': true , 'bPaginate': false , 'bServerSide': true , 'iDisplayLength': -1 ,'orderFixed': [ 0, 'asc' ] // , 'aaSorting': [[1, "asc"]] //,'aaSortingFixed': [[1, 'asc']] , 'sAjaxSource': 'XYZ.aspx/ABCDE' , 'fnServerData': function (sSource, aoData, fnCallback) { $.ajax({ 'dataType': 'json' , 'contentType': 'application/json;' , 'type': 'POST' , 'data': "{ consultorId: '" + selectedConsultor + "' }" , 'url': sSource , 'success': function (msg) { oTableInitialized = true; drawGrid(msg); $('.listContent').jScrollPane({ showArrows: false }); } , 'error': function (msg) { onError(msg); } }); } //,'aaSortingFixed': [[1, 'asc']] }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)