XML init and calling a function

The grid supports calling a function in the init stage using the XML configuration.

Like this

      <call command="setSkin">

Does the toolbar support this functionality also ?

Nope, but if you are attaching toolbar to some container element - it will take skin settings from parent component , there is no need for direct declaration.

The setSkin was just an example. I need to attach some events.

All components can load only data from XML.
Ability of grid to exec commands from XML is exception

And TreeGrid ? I thought they have alot in common.

Yep, TreeGrid as well ( TreeGrid has all functionality of Grid, so it has command-from-xml ability as well )