开发者

jqGrid celledit under certain conditions

开发者 https://www.devze.com 2023-01-24 15:49 出处:网络
I want the cells to be in edit mode when a certain c开发者_StackOverflow社区ondition is true. I\'m using cellEdit true and editable in the column but in some occasions the user shouldn\'t be able to e

I want the cells to be in edit mode when a certain c开发者_StackOverflow社区ondition is true. I'm using cellEdit true and editable in the column but in some occasions the user shouldn't be able to edit some cells of the same column even though the column is editable=true. I need to use cell editing not inline editing.

Any thoughts?

Thanks


There's a beforeEditCell event that you can handle; enough information is passed in about the cell to be edited that you should be able to determine if you want that cell to be editable. However, what I don't know is whether you can stop editing from happening within your event handler. You might try returning false from that event handler for those cells you don't want to be editable.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号