This is a migrated thread and some comments may be shown as answers.

[Solved] Client API grid.rebind() throws error

1 Answer 67 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mike
Top achievements
Rank 2
Mike asked on 09 Sep 2010, 06:02 PM
I am trying to use the rebind() method in the onDataBinding event and whenever I do, I constantly am getting the javascript error in the jQuery library:

Line: 217
Error: Object doesn't support this property or method

Below is the my event's code.
function DataElements_GridDataBinding(e) {
    var grid = $("#DataElements").data("tGrid");
    var defaultSelectUrl = "<%: Url.Action("Search_GridBinding", "DataElements") %>";
    var queryStringArgs = generateAjaxSelectQueryString();
    grid.ajax.selectUrl = defaultSelectUrl + queryStringArgs;
    grid.rebind();
}

Any idea's on what i might be doing wrong?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 09 Sep 2010, 06:11 PM
Hi Mike,

It is hard to determine where could be the problem. Could you please open a support thread on the same matter and send us a simple test project which reproduce the depicted issue.

Best wishes,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Grid
Asked by
Mike
Top achievements
Rank 2
Answers by
Georgi Krustev
Telerik team
Share this question
or