not able to call beforInit method

Hello



This is my xml file, from where i am loading data in dhtmlxgrid.



<?xml version='1.0' encoding='iso-8859-1'?>







Hi



A

A

A

A





a

b

c

d





a

b

c

d





a

b

c

d





a

b

c

d









All things going fine except beforeInit method.

I have setSkin method in the head section of jsp file.



function setSkin(hi){

     alert(hi);

         //mygrid.setSkin(“light”);

     }



I am not able to call this method, whats going wrong here.



I have also tried for afterInit method, that also not getting called.



Thanks

The methods called from beforeInit|afterInit sections - are methods of the grid, not the external functions
if you need to call custom code it can be done in next way

Hi


mygrid.my_setSkin=function(hi){

     alert(hi);

         //mygrid.setSkin(“light”);

   }