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

[Solved] "grid.editRow is not a function"

1 Answer 139 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.
Noah
Top achievements
Rank 1
Noah asked on 20 Sep 2011, 05:47 PM
Hi,

I'm using a Telerik grid (big surprise) that is configured for ajax binding and I am attempting to put a row into edit mode programmatically via javascript. However, as the thread title suggests, I keep getting an error in firebug that says "grid.editRow is not a function". I've also had similar errors when attempting to use some of the other client methods specified in the grid documentation.

Here is the relevant code

if (ancestor.LocationType == 0) {
            // Note: ancestor is a json object passed back from an action method
            // and row is supplied to the function in which this conditional appears.
            var grid = $("#all-locations").data("tGrid");
            grid.editRow(row);
}

Am I missing something obvious?

Telerik version: 2011.1.315.235

Any help would be greatly appreciated.

Thanks.

1 Answer, 1 is accepted

Sort by
0
Rich
Top achievements
Rank 1
answered on 27 Mar 2012, 07:04 PM
Hi - Did you figure out your issue?  I'm having the same problem when i try to call grid.filter().
Tags
Grid
Asked by
Noah
Top achievements
Rank 1
Answers by
Rich
Top achievements
Rank 1
Share this question
or