Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to setup bs grid #13

Open
valaydesai3 opened this issue Oct 25, 2014 · 6 comments
Open

not able to setup bs grid #13

valaydesai3 opened this issue Oct 25, 2014 · 6 comments

Comments

@valaydesai3
Copy link

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

@jcphlux
Copy link

jcphlux commented Jan 15, 2015

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

@juaby
Copy link

juaby commented Jun 25, 2015

I am also getting this error.
why?

@HarveyEV
Copy link

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

@ManimaranUVI
Copy link

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

@yjd074
Copy link

yjd074 commented Jun 10, 2016

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

@ManimaranUVI
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants