Thanks for the info, it is what I thought the answer was but was hoping not. Your solution will not work for me, I have no idea at design time what the ListView will contain, that all comes from a database at run time. My entire application is dynamic, based on what the client creates. I am writing a web version of our Windows application. I took the road of re-creating the ListView and it sort of worked. I get the new grid, I get the new headers, but the rows don't show up. I have captured the raw data at the server and applied it to a test page and the ListView on the test page worked fine so I know there is no corruption in the data. I need to figure this out. I just realized that the first time I change the grid I get no data, the second time I get no data and no header. Too much fun...

Thanks,
Jim

On 4/20/06, Benjamin Reitzammer <[EMAIL PROTECTED]> wrote:
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to