Actions
Support #1259
closedWTableView: How to refresh data once model is set?
Description
Hi,
I've displayed some data in a WTableView, but now I need to add/remove rows from it.
I tried to drop all the rows from the model (i.e. WStandardItemModel) and reload new rows, after I'm done, I call
Wt::WApplication::instance()->triggerUpdate();
Please note that I've used
enableUpdates( true )
for application object, as following.
Wt::WApplication * app = new Wt::WApplication( env );
app->enableUpdates( true );
Can anyone point out what am I missing?
Any assistance in this context will be highly appreciated and thanks in advance.
Regards,
Ejaz.
Updated by Wim Dumon over 12 years ago
You seem to call enableUpdates() correctly.
I assume you forgot to grab the WApplication::UpdateLock?
Wim.
Updated by Koen Deforche over 12 years ago
- Status changed from Resolved to Closed
- Target version changed from 3.2.0 to 3.2.2
Released in Wt 3.2.2
Actions