【问题标题】:Kendo UI Grid edit popup flickeringKendo UI Grid 编辑弹窗闪烁
【发布时间】:2012-12-13 09:03:06
【问题描述】:

我必须限制一些记录,为此我设置了一个条件

edit: function (e) { 
            if(e.model.IsReadOnly) {
                  $('#gridTiming').data("kendoGrid").closeCell(); 
            }
        },

但对于只读记录,它会闪烁。有没有其他方法可以限制记录。

我正在使用新的剑道版本“v2012.3.1114”。

【问题讨论】:

  • @troy-alford 你能帮帮我吗?提前致谢。

标签: jquery jquery-ui kendo-ui


【解决方案1】:

你可以这样做:

$('#GridName tbody').on('click','tr',function(e){
    var grid = $(this).closest('.k-grid');
    var dataItem = grid.dataItem(this);
    if(dataItem.IsReadOnly){
        e.stopPropagation();
    }
})

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-29
    • 2014-05-28
    • 1970-01-01
    • 2015-10-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多