zui icon indicating copy to clipboard operation
zui copied to clipboard

数据表格如果增加操作列,勾选行后绑定的事件因renderCell而丢失

Open hrpinfzu opened this issue 7 years ago • 2 comments

dataGrid进行记录行勾选操作时,checkRow触发了renderCell,导致初始化数据时为操作列元素绑定的事件丢失,建议想办法保留或者将选中或发布onRenderCell事件

hrpinfzu avatar Sep 24 '18 12:09 hrpinfzu

在checkRow函数中加上调用最后加上 that.$.callComEvent(that, 'onRender');即可

FlySkyBear avatar Apr 03 '19 10:04 FlySkyBear

数据表格绑定事件的最佳实践是使用事件委托机制。

catouse avatar Apr 03 '19 14:04 catouse