Project

General

Profile

Actions

Support #1259

closed
WD

WTableView: How to refresh data once model is set?

Support #1259: WTableView: How to refresh data once model is set?

Added by Anonymous over 14 years ago. Updated about 14 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.

WD Updated by Wim Dumon over 14 years ago Actions #1

You seem to call enableUpdates() correctly.

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

Wim.

KD Updated by Koen Deforche over 14 years ago Actions #2

  • Status changed from New to Resolved

KD Updated by Koen Deforche about 14 years ago Actions #3

  • 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: PDF Atom