Hi,
I have an issue on TabStrip.
I have a 2 tabs which are added dynamically. In one of the tab, i have a radgrid which is contained in a usercontrol. When I click on a row of the radgrid, i want to add an another tab dynamically.
The following code is executed when I click on a row in the radgrid :
The tab is not added, and nothing occurs.
The previous code I used doesn't work. Am i using the right code?
Please I need help thanks.
![]()
I have an issue on TabStrip.
I have a 2 tabs which are added dynamically. In one of the tab, i have a radgrid which is contained in a usercontrol. When I click on a row of the radgrid, i want to add an another tab dynamically.
The following code is executed when I click on a row in the radgrid :
protected
void
ContextGrid_ItemCommand(
object
source, Telerik.Web.UI.GridCommandEventArgs e)
{
RadTabStrip tabStrip = (RadTabStrip)
this
.Page.FindControl(
"DetailTabStrip"
);
RadTab tab =
new
RadTab();
tab.Text =
"My Tab 1"
;
tabStrip.InnermostSelectedTab.Tabs.Add(tab);
}
The tab is not added, and nothing occurs.
The previous code I used doesn't work. Am i using the right code?
Please I need help thanks.