I found what was causing the first parent item to be expanded.
I got the following from one Telerik's demos:
Protected
Sub
rgTagChangeBuildups_PreRender(sender
As
Object
, e
As
EventArgs)
Handles
rgTagChangeBuildups.PreRender
Try
If
Not
Page.IsPostBack
Then
rgTagChangeBuildups.MasterTableView.Items(0).Expanded =
True
rgTagChangeBuildups.MasterTableView.Items(0).ChildItem.NestedTableViews(0).Items(0).Expanded =
True
End
If
Catch
ex
As
Exception
strErrorMsg =
"Procedure: rgTagChangeBuildups_PreRender - TagChangeBuildups"
& vbCrLf &
"Error Message: "
& ex.Message & vbCrLf &
"Source: "
& ex.Source
UserFunctions.UserMsgBox(
Me
, strErrorMsg)
End
Try
End
Sub
Well, the Try-Catch is what I put in. The rest of the PreRender code was from the demo.
If I change the first line after the If statement to the following:
rgTagChangeBuildups.MasterTableView.Items(0).Expanded = False
Then it does not expand the first record.
Thanks!
Sincerely,
Keith Jackson