我们正在尝试使用在线编辑模式下的所有字段创建 Kendo Grid。当编辑字段选项卡更改不移动到下一个控件时,我们面临问题。
重复问题的步骤:
- 编辑第一个单元格中的文本
- 点击tab键
- 从网格中失去焦点。
请帮忙解决。
http://jsfiddle.net/suniltvl/eUhP5/
JS:
var vm = kendo.observable({
roles: [{
firstname: "test",
lastname: "test",
username: "test",
}, {
firstname: "test1",
lastname: "test1",
username: "test1",
}, {
firstname: "test2",
lastname: "test2",
username: "test2",
}]
});
kendo.bind($("#people"), vm);
HTML
<div id="people">
<div data-role="grid" data-bind="source: roles" data-row-template="role-template" data-columns='[{"field": "firstName", "title": "First Name"},
{"field": "lastName", "title": "Last Name"},
{"field": "username", "title": "user name"}]'></div>
</div>
<script type="text/x-kendo-template" id="role-template">
< tr class = "k-grid-edit-row" > < td > < input type = "text"
class = "k-textbox"
data - bind = "value:firstname" / > < /td>
<td>
<input type="text" class="k-textbox" data-bind="value:lastname"/ > < /td>
<td>
<input type="text" class="k-textbox" data-bind="value:username"/ > < /td>
</tr >