Hi,
I'm using RadControls version: 2010.Q3.1109.
I'm trying to select a child row in a Hierarchical RadGrid programmatically, but I'm having a world of woes. I've scoured Telerik's resources and this forum and I haven't seen an example of this for the RadAJAX Grid control.
Here's the code I'm trying to use:
However, I'm getting an ArgumentOutOfRangeException when I use this code, even when I set:
The values for integer variables j and i are perfectly valid. If I should use:
...then it will work, but then every child record of every parent record in the table is expanded and that's not what I want. I only want the one parent record to be expanded — not all of them.
I can select the parent record just fine with:
I'm at wits end. Your help would be greatly appreciated.
Jonathan
I'm using RadControls version: 2010.Q3.1109.
I'm trying to select a child row in a Hierarchical RadGrid programmatically, but I'm having a world of woes. I've scoured Telerik's resources and this forum and I haven't seen an example of this for the RadAJAX Grid control.
Here's the code I'm trying to use:
RadGrid3.MasterTableView.Items(j).ChildItem.NestedTableViews(0).Items(i).Selected =
True
However, I'm getting an ArgumentOutOfRangeException when I use this code, even when I set:
RadGrid3.MasterTableView.Items(j).ChildItem.NestedTableViews(0).HierarchyDefaultExpanded =
True
The values for integer variables j and i are perfectly valid. If I should use:
RadGrid3.MasterTableView.HierarchyDefaultExpanded =
True
...then it will work, but then every child record of every parent record in the table is expanded and that's not what I want. I only want the one parent record to be expanded — not all of them.
I can select the parent record just fine with:
RadGrid3.MasterTableView.Items(j).Selected =
True
I'm at wits end. Your help would be greatly appreciated.
Jonathan