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

Get Name of the Tab

1 Answer 38 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Ernandes
Top achievements
Rank 1
Ernandes asked on 05 Mar 2009, 05:40 PM
Hi there,

I would like to get the name of the tab, when some item within it is clicked ?

Best.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 16 Mar 2009, 05:24 AM
Hi ,

Try the code below to get the name of PanelBarItem in  the itemclick event.

protected void RadPanelbar1_ItemClick(object sender, RadPanelBarEventArgs e)
{
    if (e.Item.Owner is RadPanelItem)
    {
        RadPanelItem parentItem = (RadPanelItem)e.Item.Owner;
       string tabName= parentItem.Text
      }
}
-shinu
Tags
PanelBar
Asked by
Ernandes
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or