attachEvent method used in xml configuration

Hello:



It looks like, for my application, I will configure my grids using the xml api. Using the xml api, how would I describe an attachEvent method? So how would I translate this js api definition:



    grid.attachEvent(“onXLS”,function(){

     preXMLLoad(grid);

    });



to something using the xml api? Would it look something like this:



    

    

grid    

    





Thanks

While configuring grid from xml , you can’t set the exact event handler code, but you can attach any existing js function
For example if you have

function my_on_load(){

     preXMLLoad(grid);

};


You can use next code in XML


    

        

        onXLS    

        my_on_load