jquery - Search in populated data in data table even if server side processing is true -


i using below code populate data data table.

<html> <code> <script>         var table;         var gaiselected =  [];             $(document).ready(function() {                 $(".datepicker").datepicker({                     dateformat : 'dd/mm/yy'                 });                   $("#uploadidlisttable").datatable({                         "bjqueryui": true                         });                      $('#submitdatebutton').click(function() {                         var fromdate=$('#fromdateid').val();                        var todate=$('#todateid').val();                        console.log("todate"+todate);                        console.log("fromdate"+fromdate);                          table = $("#uploadidlisttable").datatable({                             "bdestroy": true,                             "bprocessing": true,                             "bserverside": true,                             "spaginationtype": "full_numbers",                             "sajaxsource": '/admin/searchcriteria',                             "sservermethod": "post",                             "aocolumns": [                                             { "mdataprop": "uploadid" ,"swidth": "20%"},                                             { "mdataprop": "vendorname","swidth": "10%"},                                             { "mdataprop": "vendorfeedmedium","swidth": "10%" },                                             { "mdataprop": "state","swidth": "20%"},                                             { "mdataprop": "filename","swidth": "30%"},                                             {                                                 "mdataprop": "vendorid",                                                 "stitle": "status url",                                                 "fnrender": function (o) {                                                      return '<a href="/admin/uidstatusviewer?uploadid=' + o.adata.uploadid + '">getstatus </a>';                                                   }                                               }                              ],                         "fnserverparams": function ( aodata ) {                             aodata.push( { "name": "fromdate", "value": fromdate } );                             aodata.push( { "name": "todate", "value": todate } );                           }                     });                     $('#uploadidlisttable tbody tr').live('dblclick', function () {                          var adata = table.fngetdata( this,0 );                          alert(adata);                             });             });             });          </script> </code>  </html> 

problem is, if use serach hits sever , try fetch data again. want search local populated data.

is there parameter available data table can achieve this?


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -