Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $dt_config=array(
- "initComplete" => 'function(settings, json) {
- pageLoaded = true;
- }',
- "deferRender" => "true",
- "processing" => "true",
- "serverSide" => "true",
- "ajax" => "{ url: '/movimenti/query_json', type: 'POST' }",
- "iDisplayLength" => 25,
- "pagingType" => "'full_numbers'",
- "autoWidth" => "false",
- "css_class" => "table table-hover table-bordered datagrid",
- "firstDay" => 1,
- "fnInitComplete" => 'loadColumnsLayout()',
- "scrollX" => "true",
- "stateSave" => "true",
- "stateSaveCallback" => 'function (settings, data) {
- // Send an Ajax request to the server with the state object
- if (pageLoaded) {
- $.ajax( {
- "url": "/json/table_state_save/movimenti",
- "data": { state : data },
- "dataType": "json",
- "type": "POST",
- "success": function () {}
- } );
- }}',
- "stateLoadCallback" => 'function (settings) {
- var o;
- $.ajax( {
- url: "/json/table_state_load/movimenti",
- async: false,
- dataType: "json",
- success: function (json) {
- o = json;
- }
- } );
- return o;
- }',
- "stateLoadParams" => 'function (settings, data) {
- data.search.search = "";
- data.start=0;
- }'
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement