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
310
ultrawebgrid expand all and deexpand with checkbox
posted

Hello guys,

I am very new in web-Development. So I have this problem:

I load datas to an ultraweb-grid. The grid is not expanded at that moment. Now our customers need an additional check-Box where they like to have: If the checkbox is true than the grid should expand all bands, if it is false it should close all the bands.

so I know, how to handle, the checkbox and so on, but I'm missing something like an ultragrid.refresh for showing the ultragrid expanded or not expanded.

I have to react on this click with the grid. How can I handle this point without loading all the datas again? The datas are allready there. I load it complete at the first time.

Thanks for help

Carla

  • 8680
    posted

    CheckBox:

        <asp:CheckBox ID="ExpandCheckBox" Text="Expand" runat="server" AutoPostBack="true" />

    Handler:

        Protected Sub ExpandCheckBox_CheckedChanged(ByVal sender As Object, _
                ByVal e As System.EventArgs) Handles ExpandCheckBox.CheckedChanged

            Me.LoadOrdersGrid()    ' Re-populate the grid - band(1) defaults to collapsed.

            If Me.ExpandCheckBox.Checked Then
               
    Me.OrdersUltraWebGrid.ExpandAll()
           
    End If

        End Sub