Categories | Question details Back To List | ||
Show Hourglass during XML dataload for DHTMLX grid We have grids with a lot of data being loaded by loadXML method. (and like DHTMLX grid a lot ;=)) Loading takes some seconds and during load, the user has no indication that data will show up soon. How can we change cursor to show an hourglass? We tried with <div id='grid_ops' style='width:1200px;height:500px;'></div> <script> var grid_ops = new dhtmlXGridObject('grid_ops'); ... document.getElementById('grid_ops').style.cursor = 'wait'; document.body.style.cursor = 'wait'; grid_ops.loadXML('/sis/fin/sis_disp_mahng.php?dataloader=grid_ops'); document.getElementById('grid_ops').style.cursor = 'default'; document.body.style.cursor = 'default'; ... </script> but that does no change the cursor at all. Thanks for your help! Answer posted by dhxSupport on Jul 01, 2009 01:40 You can use "onXLE" and on "XLE" event to define if data have been loaded from the server. Please check this article http://dhtmlx.com/docs/products/kb/index.shtml?cat=search&q=948&ssr=yes&s=onXLS |