Hi
I am trying to bind the grid with the server side paging. During grid binding i am getting an error message “[object Object]”. I couldn’t find out which line of execution gave me this error. Can you guess some possible reasons for this error. My sample code as below.
function LoadGrid(source) {
try {
var dataadapter = new $.jqx.dataAdapter(source, {
loadError: function (xhr, status, error) {
alert(error);
}
});
var theme = getDemoTheme();
$("#jqxgrid").jqxGrid({
source: dataadapter,
width: 1000,
autoheight: true,
pageable: true,
virtualmode: true,
theme: theme,
columnsresize: true,
sortable: true,
columnsreorder: true,
rendergridrows: function () {
return dataadapter.records;
},
columns: dataLoader.gridColumns,
});
$("#jqxgrid").on("bindingcomplete", function (event) {
$('#jqxgrid').jqxGrid('autoresizecolumns');
});
}
catch (err) {
}
}
Regards
Dominic