I am using the following code to select the parent row. I need to do this when the item is expanded but it's working only on collapse How do I make work on expand.
Private Sub RadGrid1_ItemCommand([source] As Object, e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid1.ItemCommand
If e.CommandName = RadGrid.ExpandCollapseCommandName Then
Dim item As GridItem
For Each item In e.Item.OwnerTableView.Items
If item.Expanded Then
item.Selected = True
End If
Next item
End If
End Sub 'RadGrid1_ItemCommand
Alternately, does or can Telerik provide an option to do this. When a Parent row in a Grid Hierchy is expanded automacally select the row if row selection is tuened on (multiple or single)
Private Sub RadGrid1_ItemCommand([source] As Object, e As Telerik.WebControls.GridCommandEventArgs) Handles RadGrid1.ItemCommand
If e.CommandName = RadGrid.ExpandCollapseCommandName Then
Dim item As GridItem
For Each item In e.Item.OwnerTableView.Items
If item.Expanded Then
item.Selected = True
End If
Next item
End If
End Sub 'RadGrid1_ItemCommand
Alternately, does or can Telerik provide an option to do this. When a Parent row in a Grid Hierchy is expanded automacally select the row if row selection is tuened on (multiple or single)