Hi There,
I have a situation where I have a RadTabStrip, a RadMultiPage control and RadGridView control.
The content is generated for the RadGridview dynamically. One of the columns is a GridButton Column, and when clicked, I want to catch the click, run a method on another WebUser Control contained in another Tab, and display the other tab.
I have most of this working. I use the ItemCommand Event to catch the click of the GridButton Column, and use Parent.FindControl to get access to the RadTabStrip, RadMultiPage, and the WebUser control.
I have a situation where I have a RadTabStrip, a RadMultiPage control and RadGridView control.
The content is generated for the RadGridview dynamically. One of the columns is a GridButton Column, and when clicked, I want to catch the click, run a method on another WebUser Control contained in another Tab, and display the other tab.
I have most of this working. I use the ItemCommand Event to catch the click of the GridButton Column, and use Parent.FindControl to get access to the RadTabStrip, RadMultiPage, and the WebUser control.
The code executes, but the Tab Strip never changes... I'm not sure what to do to change it.
Here is the code that I execute in the ItemCommand event:
switch (e.CommandName)
{
case "cmdShowRelations":
strUniqueID = e.Item.OwnerTableView.DataKeyValues[e.Item.ItemIndex][
"uid"].ToString();
Telerik.Web.UI.
RadTabStrip rts = Parent.FindControl("RadTabStrip1") as RadTabStrip;
RadMultiPage mp = Parent.FindControl("mpPersonsSearch") as RadMultiPage;
ctlFindRelatedPersons frp = Parent.FindControl( "ctlFindRelated" ) as ctlFindRelatedPersons;
frp.LoadRelatedPerson(strUniqueID);
rts.FindTabByText(
"Related").Selected = true;
mp.SelectedIndex = rts.SelectedTab.Index;
break;
}