Hi
I am using the example code Collapse group and it throws an ArgumentOutOfRageExceptiopn (Specified argument was out of the range of valid values). I believe it is the Controls(0). My Grouping is static, defined in Asp code. It works with out this code. I have Telerik Asp.Net AJAX 2008 3 1105 dll's.
I am using the example code Collapse group and it throws an ArgumentOutOfRageExceptiopn (Specified argument was out of the range of valid values). I believe it is the Controls(0). My Grouping is static, defined in Asp code. It works with out this code. I have Telerik Asp.Net AJAX 2008 3 1105 dll's.
Partial Class Dispatcher_MismatchedReport
Inherits System.Web.UI.Page
'
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If (Not (IsPostBack)) Then
CollapseAll()
End If
End Sub ' Page_Load
'
Private Sub CollapseAll()
Dim item As GridItem
For Each item In RadGrid1.MasterTableView.Controls(0).Controls
If TypeOf item Is GridGroupHeaderItem Then
item.Expanded = False
End If
Next item
End Sub ' CollapseAll
'
End Class