Hi,
Jim Hunter wrote:
I know that you can simply update the data array of a QxListView then
call update() to refresh the information on the screen. But what I have
found is that this does not work if you change the header and data
structure/information. Is there a simple way to change both the headers
array and the data array of a QxListView without disposing it then
re-creating it? Is there another method that refreshes both the header
and the data in one shot? I have tried updateLayout() and
updateContent() with no success.
No, it's currently not possible to change a listview's header once it's
created. This is an issue, that's being addressed by people on the list
developing a brand-spanking new qxlistview implementation.
Until then you may think about a workaround that I'm using:
Given that you don't have too many different header layouts you want to
be displayed, you can create several QxListView instances on one page.
Simply position them all with the same location/position on the screen,
and set the visibility of only one QxListView to true, all others to
false. If you want to change headers, you simply "change listviews" by
setting the visibility of the current one to false and the new one to true.
It works quite well with 6 listviews in our case. Using lazy
initialization of the listviews it doesn't slow down startup time either.
Not the nicest solution, but it works ;)
Cheers
Benjamin
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
Qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel