简体   繁体   English

内联编辑的kendo网格冻结列问题

[英]kendo grid frozen column issue with inline edit

I have a kendo grid with frozen column & inline editing is enabled, first column is frozen and rest all columns are editable and all have checkboxes. 我有一个带有冻结列的kendo网格,并且启用了行内编辑,第一列被冻结,其余所有列都是可编辑的,并且都具有复选框。 the issue is when I edit any row and click edit button of any other row then both rows appear editable. 问题是当我编辑任何一行并单击任何其他行的“编辑”按钮时,两行都显示为可编辑。 I only want the current row to be editable. 我只希望当前行可编辑。 Without freezing any column it works but if I used locked:true for any column it does not work. 不冻结任何列都可以,但是如果我对任何列使用locked:true都行不通。

It seems to work as expected here: http://trykendoui.telerik.com/@korchev/aSIp 它似乎在这里按预期工作: http : //trykendoui.telerik.com/@korchev/aSIp

This is the code I've tried: 这是我尝试过的代码:

  <div id="grid" style="width: 400px"></div>
  <script>
    $("#grid").kendoGrid({
      columns:[{
        field: "foo",
        locked: true,
        width: 100
      }, { field: "bar", width: 200 }, 
               { command: "edit", width: 200 }
      ],
      dataSource: {
        data: [
          { id:1, foo: "foo1", bar: "bar1" },
          { id:1, foo: "foo2", bar: "bar2" }
        ],
        schema: { model: { id: "id" }}
      },
      editable: "inline"
    })
  </script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM