Update while editing WTableView
Added by Thomas Suckow over 1 year ago
I've been fiddling with this for way too long now. I'm looking for a way to update (change/add/remove) rows in a WTableView without disrupting the user from editing in a field.
When data is only changed this is not a problem. But when I add or delete rows the edit is canceled. I am currently using the layoutChanged to indicate the number of rows has changed. Would the row deleted / row added events work for this? It would take some time to make this work with my setup so if it is futile then it probably isn't worth it.
Thanks,
Thomas
Replies
RE: Update while editing WTableView - Added by Koen Deforche over 1 year ago
Hey Thomas,
Let me first see if the layoutChanged() event could not have this side effect of closing all editors. I believe it may have been done because there was some complexity involved, but nothing prohibits that it can be implemented.
Regards,
koen
RE: Update while editing WTableView - Added by Koen Deforche over 1 year ago
Hey Thomas,
This should be fixed in latest git: WTableView no longer closes editors when adding/removing rows or doing layoutChanged().
Regards,
koen
RE: Update while editing WTableView - Added by Thomas Suckow over 1 year ago
Works like a dream.
Thanks,
Thomas