Home › Forums › Guriddo jqGrid JS › Help › The good way to set default postData and extraparam
Hi,
We use jqGrid
Trying:
jQuery.extend(jQuery.jgrid.defaults, {setGridParam:{myparam:'test'}});jQuery.extend(jQuery.jgrid.defaults, {extraparam:{myparam:'test'}});
Hello,
Open your language file – in your case grid.locale-fr.js and in the defaults section add this:
$.extend($.jgrid,{
OK,
Not tested with postData, will try next time.
But here: directly apply to whole $.post for jquery : it's OK too:
$.ajaxSetup({data: {myparam:'test'}});
See : http://api.jquery.com/jQuery.ajaxSetup/
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS