I have been struggling with this for a while and just can’t work it out.
I’m sure its not too difficult.
I have a custom button on the tool bar that posts to a cfc. I want to post in the _search and filter. The _search is straight forward but I can’t understand the syntax for the filter.
The code is this
.jqGrid ('navButtonAdd', '#pager', { caption: "", buttonicon: "ui-icon-calculator", title: "Export",
onClickButton: function() {
$.post("scripts/records.cfc?method=getRecordsExcel&returnFormat=json", {_search:true, filters:$.filters}, function(res) {
},"json");
}
})
Thanks for any help
Mark
If you use Toolbar Searching and want to reload the grid with the data from the server using the current filters from the searching toolbar you can do this with respect of
triggerToolbarmethod:(see the documentation).