bs_grid
bs_grid copied to clipboard
not able to setup bs grid
Uncaught TypeError: Cannot read property 'error_message' of undefined jquery.bs_grid.js:1060
I am also getting this error. JS $("#demo_grid1").bs_grid({
ajaxFetchDataURL: '/Home/GetLabels',
row_primary_key: "LabelTypeID",
columns: [
{ field: "LabelTypeID", header: "Id", visible: "no" },
{ field: "Description", header: "Description" },
{ field: "SizeDescription", header: "Size" },
{ field: "ImageURL", header: "Image" , visible: "no" },
{ field: "IsDeleted", header: "Deleted" , visible: "no" },
{ field: "LabelTemplates", header: "Templates" , visible: "no" },
{ field: "ChangeDate", header: "Date updated" }
],
sorting: [
{ sortingName: "Id", field: "LabelTypeID", order: "none" },
{ sortingName: "Description", field: "Description", order: "ascending" }
],
filterOptions: {
filters: []
}
});
Json {"total_rows":10,"page_data":[{"LabelTemplates":[],"LabelTypeID":1,"Description":"2" x 2" 7-Color DOW with Yellow-Stripe","ChangeDate":"/Date(1421107200000)/","SizeDescription":"2" x 2"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":2,"Description":"2" x 2" Yellow-Stripe Only","ChangeDate":"/Date(1421107200000)/","SizeDescription":"2" x 2"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":3,"Description":"2" x 1" 7-Color DOW with Yellow-Stripe","ChangeDate":"/Date(1421107200000)/","SizeDescription":"2" x 1"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":4,"Description":"2" x 1" Yellow-Stripe Only","ChangeDate":"/Date(1421107200000)/","SizeDescription":"2" x 1"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":5,"Description":"1" x 1" Yellow-Stripe Only","ChangeDate":"/Date(1421107200000)/","SizeDescription":"1" x 1"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":6,"Description":"1" x 1" Blank White","ChangeDate":"/Date(1421107200000)/","SizeDescription":"1" x 1"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":7,"Description":"2" x 3" Blank White","ChangeDate":"/Date(1421107200000)/","SizeDescription":"2" x 3"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":8,"Description":"2" x 4" Blank White","ChangeDate":"/Date(1421107200000)/","SizeDescription":"2" x 4"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":9,"Description":"2" x 6" Blank White","ChangeDate":"/Date(1421107200000)/","SizeDescription":"2" x 6"","ImageURL":"","IsDeleted":false},{"LabelTemplates":[],"LabelTypeID":10,"Description":"2" x 8" Blank White","ChangeDate":"/Date(1421107200000)/","SizeDescription":"2" x 8"","ImageURL":"","IsDeleted":false}]}
I am also getting this error. why?
Me too. No detail on the error. My JSON returned is valid.
I am also having the same problem.. What can i do. Please give samples for Asp.net MVC
I modify " if(filter_error["error_message"] != null) " to " if(false) ", then it is working now. But it is not a good solution, if anyone who has the right method, please share to us. Thx
Hi yjd074 can you plz give the sample code.. i'll look into that