mark suranjith
mark suranjith

Reputation: 13

In template driven kendo-grid method when edit click need to focus the clicked cell in the row

In template driven kendo-grid method when edit click need to focus the clicked cell in the row. Because if it's not available just have to click two times in the cell to edit the content. (Used form controls for data binding.)

Upvotes: 0

Views: 227

Answers (1)

AGH
AGH

Reputation: 353

You can do with find method with specific row index and column index to set your focus.

Here code for your reference.

var ColIndex=2, grid = $("#grdTest").data("kendoGrid");
setTimeout(function () {
grid.tbody.find("tr:eq(" + (grid._data.length - 1) + ") td:eq(" + (ColIndex - 1) + ") input").focus();
}, 400);

I hope this will help you.

Upvotes: 0

Related Questions