1
我們正在嘗試使用聯機編輯模式創建Kendo Grid的所有區域。編輯字段選項卡更改爲不移動到下一個控件時,我們正面臨問題。kendo grid MVVM在更新現場數據後發生內聯編輯焦點問題
步驟重複問題:
- 編輯文本中第一個單元格
- 點擊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 >