jquery bootgrid - Additional parameters for grid -


i using jquery-bootgrid render couple of grinds. works brilliant. want send additional parameters grid mvc controller. how can pass parameters ? have tried :

$("#results-grid").bootgrid({ ajaxsettings: {     url: testresultslisturl,     data: { testsubject: '2', : '3' }     }     }); 

but not seem work. if put properties ajax object inside ajaxsettings, un set ulr error thrown.

can please ?

i managed it, saw discussion on git project. had able send additional params controller :

$("#results-grid").bootgrid({ ajax: true, url: testresultslisturl,  requesthandler: function (request) {     if (testsubject != "") {         request.testsubject = testsubject;     }     if (medicaldevice != "") {         request.medicaldevice = medicaldevice;     }      return request; } 

the requesthandler object sent parameters, grid. can add parameters inside of it.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -