如何使用JVX Framework使特定行/单元格变为只读?

huangapple go评论98阅读模式
英文:

How can I make certain rows/cells read-only with the JVX Framework?

问题

我有一个带有多个记录的表,现在我想将具有特定值设置的列中的个别条目设置为只读,或者仅限于记录的这个单元格。是否有办法在JVX框架中实现这个功能?

我已经检查了文档,但没有符合我的要求的正确文档。

英文:

I have a table with several records and now I want to make individual entries that have a certain value set in a column read-only, or exclusively this one cell of the record. Is there a way to do this with the JVX framework?

I have checked the documentations, but there is not the right one for my requirement.

答案1

得分: 0

这可以通过一个只读检查器来实现。只需在数据表上设置只读检查器并实施您的规则。

如果因为某些技术不支持此功能而无法使用,还可以使用afterRowSelected和afterColumnSelected事件来启用/禁用整个表格。

禁用单个单元格对用户来说不太友好,因为这意味着启用了直接表格编辑... 只是说说而已。

英文:

This is possible with an readonly checker. Just set the readonly checker on a databook and implement your rules.

If this doesn't work because some technologies don't support this feature, it's also possible to use afterRowSelected and afterColumnSelected events to dis-/enable the whole table.

Disabling single cells is not nice for users because it means that direct table editing is enabled... just sayin.

huangapple
  • 本文由 发表于 2023年5月25日 16:23:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76330255.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定