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

RadPanelBar with Image and Text - To be bound from Sitemapdatasource

1 Answer 131 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
George
Top achievements
Rank 1
George asked on 28 Jul 2011, 05:58 AM
Hi,
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.

Thanks

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 29 Jul 2011, 03:05 PM
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,
Peter
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
George
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or