How to set focus to cell in Kendo UI for MVC Grid

主宰稳场 提交于 2019-12-02 07:50:58

问题


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:


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


来源:https://stackoverflow.com/questions/11851071/how-to-set-focus-to-cell-in-kendo-ui-for-mvc-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!