Thanks,
Jim
On 4/18/06, Jim Hunter <
[EMAIL PROTECTED]> wrote:
I have played with this all day and I am finally turning to the Qooxdoo community at large to come up with a solution. I have a QxWIndow that contains many Layout sections from top to bottom. In 3 sections there are ListView objects. Since 2 of the sections are static for the most part, I am having no problem creating and displaying the ListViews. Once of the sections has a ListView that will change a lot so I have created a method for re-generating the ListView with new data. Well, in short, it does not work at all. If I generate the ListView prior to adding it to the stack of layouts, it looks fine (besides the overflow on the right that is to be expected). But if the layout section is added to the stack, THEN I try and create/add a ListView, everything goes crazy. The layout section that this ListView is going into is a CanvasLayout. I then add the ListView to the container. The container has a width of 100% and a height of FLEX (I have also tried a fixed height with no change in behavior). Here are the odd behaviors I encountered:
1) If I have the ListView set to Width=800, Height=200, the outline of the ListView shows but the rest of the page does not and I get an "Unresponsive script" error and am forced to Stop the script.
2) If I don't set any dimensions for the ListView, I get a very large empty ListView and nothing else on the page (after the ListView) is displayed, but I do not get the "Unresponsive script" error.
3) If I populate the ListView priot to adding the CanvasLayout to the main page, the ListView looks like I would expect.
So what techniques do people use (besides the addData function that has been posted before, I could not make that work either)? How do you change data on the fly once the ListView has been created and rendered to the scree?
Thanks,Jim Hunter
iBASe