英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论