简体   繁体   English

如何将kendo ui网格设置为只读

[英]how to set kendo ui grid readonly

When I used Kendo UI Grid component, I have problem to make readonly or disabled the Grid component. 当我使用Kendo UI Grid组件时,我有使只读或禁用Grid组件的问题。

I have tried with JQuery ( using class .k-button and/or .k-button-icontext) to set readonly or disabled. 我已经尝试过使用JQuery(使用类.k-button和/或.k-button-icontext)设置只读或禁用。

The toolbutton works, but the in-row Edit and Delete buttons may not be changed (always clickable). 工具按钮可以使用,但是行内的“编辑”和“删除”按钮可能无法更改(始终可以单击)。 Do you have any trick to achieve it? 你有什么窍门吗? Thanks. 谢谢。

These solutions are given on Kendo Website they will get you through this 这些解决方案在Kendo网站上给出,它们将帮助您解决这个问题

Grid / Editing custom editor also according to them " Making individual rows read-only is not supported out of the box. It is possible to define individual columns as editable: false in the DataSource's model" 网格/编辑自定义编辑器还应遵循以下规则:“不支持将单个行设置为只读。可以将单个列定义为可编辑的:在DataSource的模型中为false”

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

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