Tobias Koller (GERMO GmbH) schrieb:
>
> Hi,
>
> I have one more question.:)
>
> On my webApp there is a TreeWidget. I catch the
> “changeSelection”-event to react on user-clicks.
>
> My problem is that, if the user clicks on a folder and there is much
> to display for the application (f.e. much data in a Table), the
> selected Folder is
>
> first selected after the hole loading-procedure is done.
>
> My thought are: I would like to use something like the asyc-calls,
> that I click on the treefolder and the application loads the data
>
> Asynchrony.
>
> Is there a way to do this?
>
> Thanks
>
> Tobias
>
In the "changeSelection" callback you could use the following idiom:
treefolder.addEventListener("changeSelection", function(e) {
qx.client.Timer.once(function() {
// do some long running stuff
}, this, 0);
}, this);
This way the tree selection updates immediately.
Best Fabian
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Fabian Jakobs
JavaScript Framework Developer
1&1 Internet AG
Brauerstraße 48
76135 Karlsruhe
Amtsgericht Montabaur HRB 6484
Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas Gauger,
Matthias Greve, Robert Hoffmann, Norbert Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel