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

Can't filter with static data #94

Closed
Alonzzzo2 opened this issue Aug 18, 2015 · 1 comment
Closed

Can't filter with static data #94

Alonzzzo2 opened this issue Aug 18, 2015 · 1 comment
Labels

Comments

@Alonzzzo2
Copy link

When I try to work with static data and not with the controller, after I enter a value to one of the int fields and press enter, I can see the this.data is undefined...
I took a look at the demos - static data, and didn't understand what I'm doing wrong...
Here's my js code which runs on page load:

function jsgridStart(taskID)
{
    $.getJSON("/Jobs/JobsData/" + taskID, function (data) {
        jsGridData = data;
        $("#jsgrid").jsGrid({
            height: "610px",
            width: "100%",

            filtering: true,
            sorting: true,
            paging: true,

            pageSize: 500,
            pageButtonCount: 5,
            autoload: false,
            data: jsGridData, // an array of data
            fields: [
                { name: "DeviceID", title: "Device ID", type: "text", width: 150 },
                { name: "RunResult", title: "Run Result", type: "number", width: 50 },
                { name: "JobResult", title: "Job Result", type: "number", width: 200 },
                { name: "JobResultValue", title: "Job Result Value", type: "number" },
                { name: "ExtendedResult", title: "Extended Result", type: "text" },
                { name: "Comments", title: "Comments", type: "text" },
                { name: "TimeOfRun", title: "Time Of Run", type: "text" }
            ]
        });
    });       
}

Hope this is the right way to ask for this kind of help. if not, can you please tell me how?
Thanks you very much!

@tabalinas tabalinas added the bug label Aug 18, 2015
@tabalinas
Copy link
Owner

I've reproduced the issue. Thank you for the report.
Anyway, filtering is completely developer responsibility (read about that in the ticket #32). That's why your filtering won't work without controller anyway.

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

No branches or pull requests

2 participants