1) So I did the following in my code:
$_("#excelExport").click(function() {
$_("#search_results_panel_grid").jqxGrid('exportdata', 'xls', 'Search_Results',true,null,true,'http://myserver.com/save-file.php');
});
And when I tried to download the file, it downloaded an empty xls file, why is it like this?
2) Secondly the sample code mentioned here (https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgrid/jquery-grid-api.htm?search=grid)shows
$("#jqxGrid").jqxGrid('exportdata', 'json', 'jqxGrid', true, null, true, http://www.myserver.com/save-file.php);
The URL is not inside single or double quotes. Is that an error? Because my editor complains if I don’t put single quotes just like I have shown above.