problem with onXLE event

Hi

Iam using the function mygrid.attachEvent(“onXLE”,function()). in my code.If i dont use grid.splitAt() function in my code XLE event is working fine.but whenever i used split function XLE function is not working.control is not going into the function.I cant understand why this error is coming.Below is the code that i used in my code.



mygrid.attachEvent(“onXLE”,function(){



//hide loading message here

document.getElementById(‘message’).style.display=‘none’;

mygrid.sortRows(0);

buttonEnableFnc();

cursorNormal();



});

After loading data in the grid control is not going in thr above funtion.Please provide me the solution.

Thanks

Sample with the same code sent by email. It works correctly, the onXLE event called after all data loaded in grid.
While it not really critical, please be sure that attachEvent command called before load|loadXML