split treegrid

Is there anyway to get the split to work without using the body onload? I am unable to use that in my situation.

Method mygrid.splitAt() can be executed only before mygrid.init() method.