Timeline – dojo – Trac:: the page loaded everything is working fine, on reloading the 11:35 Ticket #7623 (ComboBox should not put More choices in the text box) created by doughays http://trac.dojotoolkit.org/timeline?from=2008-09-13T06:41:47Z-0700&precision=secondHOME | Hi,
I use a ComboBox in a Dialog and get data from a database through an asynchronous call. First, the dialog is painted and when the call is completed, data in ComboBox are shown without calling any method to repaint the dialog. trac.dojotoolkit.org/report/19?format=tab&USER=anonymous:: erikcw 3 None 8100 [CLA-patch] ComboBox in a Dialog : e.preventDefault() issue against source tree), the time goes from 10s, 15s, 20s, etc. each time reloaded. http://trac.dojotoolkit.org/report/19?format=tab&USER=anonymousHOME |
But in a LayoutContainer, the behaviour is not the same. After the call is completed, ComboBox data are not loaded and the ComboBox appears empty.
I don't know if I have to call any method to repaint the LayoutContainer.
Thanks.
Hi Darrell,
The data is ok, because I have checked in debug mode. I think the problem is the asynchronous call. The call return the data too late, when the layout has been painted, so I think I need some type of call to a method to repaint it (like layout() or similar).
Moreover, I have created test data with a test store and populated by code without calling the RPC method and the combo shows the data correctly.
One possible solution is to show a "Loading" screen while the data is not ready, but I don't know how to do this properly.
Thanks
Hello again, Darrell. The problem is solved. I think this thread can be closed.
Regards
It parent container should not make any difference in how a ComboBox works. I would guess that there is a problem with the data. If you still have problems, then post some sample code and I will take a look
How much does getting a small tattoo on your hip/stomach hurt?
Do anyone else have an itchy anus? ?
|