Infragistics Home

Infragistics Forums

Infragistics community online discussions.
Welcome to Infragistics Forums Sign in | FAQ
in Search

Showing the Expand All - UltraWebGrid

Last post 09-08-2008 3:46 by [Infragistics] Rumen Stankov. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 08-29-2008 12:58

    Showing the Expand All - UltraWebGrid

    Hi,

    I copied, or attempted to reproduce, the code for programatically expanding the groupBy rows but am not getting any output.

    I am using VS 2005 with NetAdvantage 6.3 Web.  *We can upgrade to VS 2008, yet.

    How do I get this to group on the two columns indicated and have the output show expanded.

    Thank you.

    MsBajanLady

    This is my code:
        Private Sub BindData()
            ' Enable paging by default
            Me.ugGridExceptions.DisplayLayout.Pager.AllowPaging = True

            Me.ugGridExceptions.DataSource = Me.dsAttendance.Tables("usp_ReportInfo").DefaultView
            Me.ugGridExceptions.DataBind()

            Me.ugGridExceptions.DisplayLayout.Bands.FromKey("Id").Columns.Band.Columns.FromKey("UserID").IsGroupByColumn = True
            Me.ugGridExceptions.DisplayLayout.Bands.FromKey("Employee").Columns.Band.Columns.FromKey("Employee").IsGroupByColumn = True
            Me.ugGridExceptions.PerformGroupRows()
            Me.ugGridExceptions.ExpandAll()


            ' Disable paging if there aren't enough rows for more than one page
            If (Me.ugGridExceptions.DisplayLayout.Pager.PageCount < 2) Then
                Me.ugGridExceptions.DisplayLayout.Pager.AllowPaging = False
            End If
        End Sub

    • Post Points: 20
  • 09-05-2008 3:59 In reply to

    Re: Showing the Expand All - UltraWebGrid

    Hello,

    There is a similar thread in the forum discussing the same set of problems - programmatically grouping, then expanding grouped rows. The technique suggested there involves hooking the PreRenderComplete event and expanding there.

    For more details and sample source code, please visit this thread:

    http://forums.infragistics.com/forums/p/12998/48120.aspx#48120

    Hope this helps.

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 20
  • 09-05-2008 11:59 In reply to

    Re: Showing the Expand All - UltraWebGrid

    The problem is I don't see the "IsGroupByColumn" attribute after typing Columns[X].

    I do see "PerformGroupRows" however, I would like to, On Page Load to have the needed columns grouped.

    Your help is appreciated.

    Thank you.

     

    • Post Points: 20
  • 09-08-2008 3:46 In reply to

    Re: Showing the Expand All - UltraWebGrid

    Hello,

    Most probably IsGroupByColumn property has been added at a later point to the grid. 2006.3 is two years old, is there a reason that prevents you from upgrading? There are plenty of new features implemented and issues addressed in the newer versions.

    In any case, I can suggest taking a look at the following article that refers to older grid versions:

    http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=2321

    Maybe there are good suggestions there 

    Best Regards,
    Rumen Stankov (MCSD.NET)
    The Infragistics ASP.NET Team
    • Post Points: 5
Page 1 of 1 (4 items)
Powered by Community Server (Commercial Edition), by Telligent Systems