Hello Guys
As you can see the attached file, I have a gridview with 4 hierarchical views, I need that when the user click one of the tabs of the hierarchical view, and other row is expanded the selected tab view will be the previous selected. And if more of 1 row is expanded and the user change the hierarchical view, in all the expanded rows change the selected tab view to the selected for the user.
I tried to make it with the RadGridView1_ChildViewExpanding Event but i didnt find the Select Tab Property,
in the hirarchical view
,
As you can see the attached file, I have a gridview with 4 hierarchical views, I need that when the user click one of the tabs of the hierarchical view, and other row is expanded the selected tab view will be the previous selected. And if more of 1 row is expanded and the user change the hierarchical view, in all the expanded rows change the selected tab view to the selected for the user.
I tried to make it with the RadGridView1_ChildViewExpanding Event but i didnt find the Select Tab Property,
in the hirarchical view
Private
Sub
RadGridView1_ChildViewExpanding(
ByVal
sender
As
System.
Object
,
ByVal
e
As
Telerik.WinControls.UI.ChildViewExpandingEventArgs)
Handles
RadGridView1.ChildViewExpanding
'RadGridView1.Templates.GetTemplateByCaption(e.ParentRow.ActiveView.ViewTemplate.Caption)
Dim
stemplate
As
String
If
e.IsExpanded =
False
Then
For
Each
row
As
GridViewRowInfo
In
RadGridView1.Rows
If
(row.IsExpanded =
True
)
Then
stemplate =
DirectCast
(row, Telerik.WinControls.UI.GridViewHierarchyRowInfo).ActiveView.ViewTemplate.Caption
Exit
For
End
If
Next
End
If
End
Sub