Title: Load message for tree. Post by: iceh on August 15, 2014, 05:34:44 AM Hi,
how can I use a loadmessage for the tree? I do some processing with AJAX and assign the data via tree.tree({ data: data }); In the meantime it'd like to show a simple animation like the datagrid loading message Title: Re: Load message for tree. Post by: iceh on August 17, 2014, 02:25:14 AM Any hint on this?
I tried adding a dummy node, but this won't do the job 100% Title: Re: Load message for tree. Post by: stworthy on August 17, 2014, 05:31:47 AM Please try to extend a new method to display a mask message on a panel.
Code: $.extend($.fn.panel.methods, { And then put the tree to a panel. Code: <div id="pp" class="easyui-panel"> When loading the tree data, call 'showMask' method to display a waiting message. Code: $('#pp').panel('showMask', 'Loading, please waiting...'); Title: Re: Load message for tree. Post by: iceh on August 17, 2014, 11:43:41 AM That's nice!
That will solve other problems, too ;) |