【发布时间】:2016-10-14 18:43:13
【问题描述】:
我已经在plunk 中重现了我面临的问题。
我有一个带有可编辑行的剑道网格。
- 单击编辑并单击“库存单位”列的值,会导致警报弹出窗口触发两次。
- 单击取消,然后再次单击同一列,弹出窗口仅打开一次。
为什么会发生这种情况以及如何解决这个问题,因此即使该行处于编辑模式,弹出窗口也只会打开一次。
$scope.grid.options = {
dataSource: $scope.dataSource,
pageable: true,
height: 550,
toolbar: ["create"],
columns: [
"ProductName",
{ field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: "120px" },
{ field: "UnitsInStock", title:"Units In Stock", width: "120px", template: '<a href="" ng-click="test(dataItem.UnitsInStock)">{{dataItem.UnitsInStock}}</a>'},
{ field: "Discontinued", width: "120px" },
{ command: ["edit", "destroy"], title: " ", width: "250px" }],
editable: "inline"
};
【问题讨论】:
标签: javascript angularjs kendo-ui telerik kendo-grid