I am currently working on an application which will open tabs dynamically by clicking items inside panelbars. I wish to ignore few items espeicially title/group elements when clicked. When getting ID or Tab Index, I am getting same values for multiple entries. For example inside panel "Admin" bar and its first child is returning same value (0).
Furthermore I wish to add click event to an image added to tab for closing reasons. I dont want to use Tab Template feature for this. Any suggestion. My code is in following shape at present.
Furthermore I wish to add click event to an image added to tab for closing reasons. I dont want to use Tab Template feature for this. Any suggestion. My code is in following shape at present.
protected void RadPanelBar1_ItemClick(object sender, RadPanelBarEventArgs e)
{
RadTab NewTab = new RadTab();
NewTab.Text = e.Item.Text;
NewTab.ImageUrl = "images/deletecross.gif";
RadTabStrip1.Tabs.Add(NewTab);
int sel;
sel = RadTabStrip1.Tabs.Count();
RadTabStrip1.SelectedIndex = sel - 1;
}