jquery - kendo ui网格弹出隐藏按钮

标签 jquery kendo-ui kendo-grid

如何删除剑道模板弹出窗口上的更新/取消按钮?并添加我自己的自定义按钮?

Demo in Dojo

最佳答案

请尝试这可能对您有帮助
但这是为了隐藏 nOrmal 用户的按钮。

var is_editable = false;
    var role = "<?php echo setting('admin.Admin_role_id') ?>";

    @if(Auth::user()->role_id == setting('admin.Admin_role_id', 1))

    is_editable = true;

    @endif

    editing: {
                mode: "popup",
                allowAdding: is_editable,
                allowDeleting: is_editable,
                allowUpdating: is_editable,
                popup: {
                    title: "Employee Attendance  Information",
                    showTitle: true,
                    id: "employees->id",
                    position: {
                        my: "top",
                        at: "top",
                        of: window
                    }
                }
            },

关于jquery - kendo ui网格弹出隐藏按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59484414/

相关文章:

kendo-ui - kendo UI网格数据项设置方法

javascript - 0x800a138f - JavaScript 运行时错误 : The value of the property '' is null or undefined, 不是函数对象

jQuery <select> 第一个 <option> 未禁用

javascript - 单击而不是悬停时的 Jquery

javascript - HTML5 语音合成 API - 只能使用 "native"语音

javascript - 我可以使用 JavaScript 以编程方式编辑数据源吗?

javascript - Kendo UI Grid 在初始读取时未显示微调器/加载图标

java - 在 spring mvc 中使用 jQuery ajax 从 html 页面传递值

javascript - 添加类以突出显示输入框边框(如果它是空的)

javascript - 如何在元素内使用 Javascript 绘制正方形?