Yana

You cannot set templates like this, because you also create declaratively items which are lost after the panelbar is databound. I've attached a modified version of your code to demonstrate how to achieve the needed approach. If you need a more complicated template, you should create it in the code behind.
Please try the attached file and let us know what you think.

Greetings,
Yana
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items

Josh McCullough

Thanks for posting a possible solution, However, in my case the contents will be much more complex so this won't work for me. Your solution of just adding the controls via code-behind doesn't feel right, either. I wish there was a better way to do what I need to do - but I just ended up writing a simple CollapsiblePanel control to use instead of the PanelBar in this case.

Yana

RadPanelBar will provide a new content template from Q2 2010 release. It will be available next week, so you can check it out.

Best regards,
Yana
the Telerik team

Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.