RadPanelBar with Image and Text - To be bound from Sitemapdatasource

2 posts, 0 answers
  1. George
    George avatar
    9 posts
    Member since:
    Apr 2011

    Posted 28 Jul 2011 Link to this post

    I have sitemap datasource which will contain the url to the webpage, text to be displayed, tool tip, url to the icon image. I was able to bind this appropriately to a tabstrip by using the item data bound event.
    But am not sure, how to achieve the same in RadPanelBar. (I know how to do it from aspx side by giving <Items>. But I want to achieve it from code behind as I never know what will be the number of items in the panel bar)
    Kindly guide me to an example or let me know how to do this.

  2. Peter
    Peter avatar
    6637 posts

    Posted 29 Jul 2011 Link to this post

    Hello George,

    Please, review this help topic and step 3 in particular:

    protected void RadPanelBar1_ItemDataBound( object sender, Telerik.Web.UI.RadPanelBarEventArgs e)
        //Set additional properties. ToolTip for example:
        DataRowView row = (DataRowView)e.Item.DataItem;
        e.Item.ToolTip = row["Tooltip" ].ToString();

    Best wishes,
    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top