Project

General

Profile

Lazy loading failing with WTreeView

Added by John Stark over 1 year ago

I having problems with the "lazy loading" of items in a WTreeView.
When the model is significantly changed (many items removed / added) the loading ceases to work and items stop. With CSS, this causes the "Loading" graphic to display and never close.

Replacing WTreeView with WTableView runs the same code ok.

A minimal sample is attached:

  • When the page initially loads the items scroll ok.
  • Now click the button at the top forcing the model to be rebuilt (all items removed and re-added).
  • The scrolling now stops at around item 150.

Am I doing something wrong here, or is it a bug?

ps. It looks similar to this from 11 years ago, but now cases seem to have reversed (WTableView works, WTreeView doesn't): https://redmine.webtoolkit.eu/boards/2/topics/3733?r=3968

main.cpp (1.86 KB) main.cpp sample code for WTreeView issue

Replies (1)

RE: Lazy loading failing with WTreeView - Added by John Stark over 1 year ago

It looks like a bug; I opened a ticket and pushed a fix. Thanks for accepting the changes. See issue #11240.

    (1-1/1)