Dynamically build template panel items

2 posts, 0 answers
  1. gonewalkabout
    gonewalkabout avatar
    12 posts
    Member since:
    Oct 2006

    Posted 19 Jan 2011 Link to this post

    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.

  2. Simon
    Simon avatar
    2281 posts

    Posted 25 Jan 2011 Link to this post

    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,
    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.
Back to Top