Project

General

Profile

Actions

Support #1259

closed

WTableView: How to refresh data once model is set?

Added by Anonymous over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/26/2012
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by Wim Dumon over 12 years ago

You seem to call enableUpdates() correctly.

I assume you forgot to grab the WApplication::UpdateLock?

Wim.

Actions #2

Updated by Koen Deforche over 12 years ago

  • Status changed from New to Resolved
Actions #3

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

Also available in: Atom PDF