This is a migrated thread and some comments may be shown as answers.

Dynamically build template panel items

1 Answer 58 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 19 Jan 2011, 11:52 PM
I've been at this for 3 days  and I'm either dense or this isn't as easy as it should be.
If you look at the RadScheduler demo (I attached a snapshot) you will see a PanelBar in the bottom left that displays the users 'calendars'. I need to build this PanelBar, dynamically, from SQL in VB and I cannot get my head around how to do this. I have tried the various demos etc and had varying degrees of luck mostly with binding the children. 
I also would like to create the checkbox item with 'autopostback' set to true but can live with client side code if required.

Can someone point me at a similar effort or supply me a sample of the code I require to do this.

 

1 Answer, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 25 Jan 2011, 03:49 PM
Hello gonewalkabout,

Basically you can create such a PanelBar dynamically by first defining the CheckBox Template in a way similar to that shown in this help article. Then for those Items that need to have the Template you can instantiate it manually (by calling InstantiateIn) as also shown in the help article.

If you have additional questions, please let me know.

All the best,
Simon
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
PanelBar
Asked by
Craig
Top achievements
Rank 1
Answers by
Simon
Telerik team
Share this question
or