treegrid.setXMLAutoLoading can't utilize javascript function

setXMLAutoLoading does not utilize function?

I can use kidsXmlFile to set specific url and default parameters for dynamic loading, however I need to provide more than just id for dynamic load so really want to use my own function.

From online docs:

void setXMLAutoLoading(string filePath);
filePath string the name of the script returning XML; in case of virtual loading - a user-defined function

So it sounds like a user defined function is supported in which case how to I enable virtual loading? Or is this no longer supported and the online docs just out of date?

Unfortunately the setXMLAutoLoading() method cannot be used for enabling the dynamic loading in the treegrid.
The documentation will be updated in the near future and the method will be removed.