I have a webpage including one tree widget.
The tree widget may have 500 items. So a dataAdapter is used to load the data asynchronously.
dataAdapter = new $.jqx.dataAdapter(source, {
autoBind: true,
loadComplete: function (records) {
records = dataAdapter.getRecordsHierarchy(‘id’, ‘parentid’, ‘items’);
pre_account_tree = $(‘#pre_account_tree’).jqxTree({
theme: ‘custom’,
source: records,
width: ‘100%’,
height: ‘100%’,
});
…
});
The loading time of the page is about 3 seconds.
Could you please help me to use a loading-icon to put in the middle of the tree widget while the tree widget is waiting for the server data or rendering the data.
Thanks!