Hello,
I need to update a cell based on some run time logic, not triggered by row click event, so I don't have row index.
All I have is UniqueId.
Basically, "getRowByUniqueId" does not return row index, and "updateCell" needs row index.
It doesn't seem every efficient to use "getRowByUniqueId" to get the row data, then use "updateByUniqueId" to copy every column not changed, except one column with new value.
Any suggestions?
Any help greatly appreciated!
Hello,
You don't need to pass all column values in "updateByUniqueId".
You can just do:
table.bootstrapTable('updateByUniqueId', {
id: ID,
row: {FIELD: VALUE}
});
@luisbessa , Wow, thanks much!
Will try out your solution shortly!
updateCellById method can solve your problem.
Hi @wenzhixin , current version v1.11.1 does not have "updateCellById", where can I get it?
Thanks!
Most helpful comment
Hi @wenzhixin , current version v1.11.1 does not have "updateCellById", where can I get it?
Thanks!