1
votes

I need to set the focus on a Kendo UI Grid to a specific cell, in the first row during the DataBound event. I'm using Kendo for MVC, here is the definition of my column:

columns.Bound(o => o.QtyCurrentlyReceived).Width(75).Title("Qty Curr Rx");

1
Do you mean to put the cell in edit mode? What should focus mean ?Petur Subev
I suppose to put it in edit mode would probably get the results I'm looking for. the cell is the only one on the Batch Update grid taht is editable and it has a numericTxtBox in it. Right now when the user opens the page, it is not obvious that the cell in question is the one they should be in.Alan Fisher

1 Answers

3
votes

Okey then this is the code that should do the work for you:

var theCell = $('#Grid tbody td:eq(3)');//sample selector for a cell
$('#Grid').data('tGrid').editCell(theCell);//ask the Grid to put that cell in edit mode