For more reference on the TemplateNeeded
event for the RadPanelBar control you can take a look here
. Furthermore you could also refer to all the events that you can use with the RadPanelBar control - RadPanelBar Members.
is a very good help article that describes how you can add templates at runtime.
the Telerik team