如何将焦点设置到细胞在剑道UI的MVC网格 [英] How to set focus to cell in Kendo UI for MVC Grid

查看:104
本文介绍了如何将焦点设置到细胞在剑道UI的MVC网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我所需要的数据绑定事件期间的焦点上的剑道UI网格设置为特定的细胞中,第一排。我使用的是剑道的MVC,这里是我的专栏的定义:

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伪(数量币种接收);

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

推荐答案

欧凯那么这是code应该为你做的工作:

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

这篇关于如何将焦点设置到细胞在剑道UI的MVC网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆