jQuery UI Widgets › Forums › Grid › An error alert during grid binding (Error message : [object Object])
Tagged: data adapter, dataadapter, grid, jqxDataAdapter, jqxgrid, source
This topic contains 2 replies, has 2 voices, and was last updated by dominicthoppil 12 years, 5 months ago.
-
Author
-
September 19, 2013 at 7:06 am An error alert during grid binding (Error message : [object Object]) #29208
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
DominicSeptember 20, 2013 at 6:28 am An error alert during grid binding (Error message : [object Object]) #29271Hello Dominic,
The issue most probably comes from the dataAdapter. Please provide us with more information about your data source and the code of your source object.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/September 23, 2013 at 4:43 am An error alert during grid binding (Error message : [object Object]) #29336Dear Dimitar
Thank you for your reply. My issue got solved when i made some changes in the data.
Regards
Dominic -
AuthorPosts
You must be logged in to reply to this topic.