bs_grid icon indicating copy to clipboard operation
bs_grid copied to clipboard

not able to setup bs grid

Open valaydesai3 opened this issue 10 years ago • 6 comments

Uncaught TypeError: Cannot read property 'error_message' of undefined jquery.bs_grid.js:1060

valaydesai3 avatar Oct 25 '14 10:10 valaydesai3

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}]}

jcphlux avatar Jan 15 '15 20:01 jcphlux

I am also getting this error. why?

juaby avatar Jun 25 '15 06:06 juaby

Me too. No detail on the error. My JSON returned is valid.

HarveyEV avatar Oct 27 '15 01:10 HarveyEV

I am also having the same problem.. What can i do. Please give samples for Asp.net MVC

ManimaranUVI avatar Jun 07 '16 10:06 ManimaranUVI

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

yjd074 avatar Jun 10 '16 12:06 yjd074

Hi yjd074 can you plz give the sample code.. i'll look into that

ManimaranUVI avatar Jun 10 '16 13:06 ManimaranUVI