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
799
Paging problem
posted

hi,

 

I'm using an ultrawebgrid, to display my data from an objectdatasource. The user has the option to receive a total list, or to display max items per page. When paging occurs, the user has the combobox to select what page he wants to see. But every time, he clicks on a pagenumber, the page refreshes correctly, but displays (in the combobox), and in the currentpageindex, the number 1 again. How can I solve this

Controls : v11.1

 

code page

<igtbl:UltraWebGrid ID="uwgHistoriek" runat="server" meta:resourcekey="uwgHistoriekResource1">
                <DisplayLayout Version="4.00" SelectTypeRowDefault="Extended" Name="uwgHistoriek"
                    AllowSortingDefault="OnClient" AllowDeleteDefault="Yes" AllowUpdateDefault="Yes"
                    AllowColSizingDefault="Free" RowHeightDefault="20px" TableLayout="Fixed" ViewType="OutlookGroupBy"
                    RowSelectorsDefault="No" AllowColumnMovingDefault="OnServer" HeaderClickActionDefault="SortMulti"
                    StationaryMargins="Header" BorderCollapseDefault="Separate" StationaryMarginsOutlookGroupBy="True">
                    <Pager MinimumPagesForDisplay="2" StyleMode="ComboBox" Pattern="[currentpageindex] / [pagecount] [default]" AllowPaging="true" />
                    <ActivationObject BorderColor="" BorderWidth="" />
                    <FilterOptionsDefault AllowRowFiltering="No" FilterIcon="False">
                    </FilterOptionsDefault>
                </DisplayLayout>
            </igtbl:UltraWebGrid>

 

events

        Protected Sub uwgHistoriek_InitializeLayout(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.LayoutEventArgs) Handles uwgHistoriek.InitializeLayout
...

       End Sub

        Protected Sub uwgHistoriek_InitializeRow(ByVal sender As Object, ByVal e As Infragistics.WebUI.UltraWebGrid.RowEventArgs) Handles uwgHistoriek.InitializeRow

...

       End Sub

        Protected Sub uwgHistoriek_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles uwgHistoriek.PreRender
            Dim settings As Settings = SettingsData.GetSettings()

            With uwgHistoriek.DisplayLayout.Pager
                If settings IsNot Nothing Then
                    If settings.RijenRooster = 0 Then
                        .AllowPaging = False
                    Else
                        .PageSize = settings.RijenRooster
                        .AllowPaging = True
                    End If
                End If
            End With

        End Sub


 


Parents Reply Children
No Data