Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Àlex Corretgé on Apr 16, 2008 08:05
open dhtmlx forum
dhtmlXgrid onXLE event

Hi, I use this event as this:

[...]
myGrid.init();
myGrid.attachEvent('onXLE', ajaxLoading(false));
myGrid.loadXML('xmlMyGrid.php');

The attached function jump when All XML data is recived by the dhtmlXgrid but I need to execute a trigger when the data is processed.

In stress cases like a grid with 138 columns and arroun one hundred of rows, the delay is considerable.

Exist another event like onRenderedGrid???

thanks for all

Kind Regards
Àlex Corretgé
Answer posted by Support on Apr 16, 2008 09:31
>>myGrid.attachEvent('onXLE', ajaxLoading(false));
You are using incorrect syntax, the correct command will be
    myGrid.attachEvent('onXLE', ajaxLoading);
or
    myGrid.attachEvent('onXLE', function(){
        ajaxLoading(false)
    });


>>Exist another event like onRenderedGrid???
There is an alternative syntax
myGrid.loadXML('xmlMyGrid.php',function(){
    ajaxLoading(false)
});
Answer posted by Àlex Corretgé on Apr 16, 2008 09:46
Perfect!

Thanks for all.