Categories | Question details Back To List | ||||||||
Tree incremental loading Hi, when using the tree with the incremental loading of nodes: is it possible to have a loading indicator in front the node text? Best regards, Stefan Answer posted by Support on Sep 10, 2009 06:31 Tree has onXLS and onXLE events , which can be used to show|hide any kind of custom loading indicator. http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&ssr=yes&start_search=1&s=onxls&x=0&y=0 Answer posted by Stefan on Sep 21, 2009 06:15 The problem is to get the current node, which should be opened by clicking the '+' :-(. I've not found any approbiate method.
Not tree.getSelectedItemText(); but any like tree.getClickedItemText();
Best regards, Stefan Answer posted by Stefan on Sep 21, 2009 06:52 Hi,
meanwhile i found a way, which i want to share all users: The tree shows on the first load a div with a loading image and replaces the text of the current node to be expanded with the same image and text and restores the original text.
<style>
<table id="loader" style="display:none"><tr><td><img src="../../images/arrows.gif"/></td><td style="font-family:arial;font-size:0.7em">Loading ...</td></tr></table>
<script>
May be that this could be coded in a better way :-).
Best regards, Stefan Attachments (1)
|