Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Auto Expanding Groupped Items and adding Summaries to the groupped rows?
posted

Hi All,

I'm using Version 8.1 and trying to use UltraWebGrid to show some data in my web app. I'm having great deal of problems to auto Expand the groupped items. Please click here to see the screen shot.All I want is when user goes the page they see the records which are groupped and groups are expanded. I searched the forum for 2 days and still found nothing. Here's what I have tried, some sample code: Just so you know below codes don't do anything. It still shows the collapsed view.

Protected Sub UltraWebGrid1_InitializeGroupByRow(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.RowEventArgs) Handles UltraWebGrid1.InitializeGroupByRow
For Each row As UltraGridRow In UltraWebGrid1.Rows
row.Expand(
True)
Next
UltraWebGrid1.ExpandAll(True)
End Sub

Protected Sub UltraWebGrid1_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles UltraWebGrid1.InitializeLayout
UltraWebGrid1.Columns(1).IsGroupByColumn =
True
UltraWebGrid1.Columns(1).AllowGroupBy = Infragistics.WebUI.UltraWebGrid.AllowGroupBy.Yes
UltraWebGrid1.ExpandAll(
True)
End Sub

Thanks