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

前端 未结 1 1870
攒了一身酷
攒了一身酷 2021-01-25 04:48

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:

<
相关标签:
1条回答
  • 2021-01-25 05:47

    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
    
    0 讨论(0)
提交回复
热议问题