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
Thanks for the ticket. The moment I'll find a solution I'll be sure to update the forum.
Hi Razieltje,
Thank you for your reply.
I have created a support ticket for you with an ID: CAS-82430-Q5MCDB. We can discuss your scenario privately through email.
Note that you can observe your active support tickets by going to infragistics.com > My IG > My Support Activity.
Hi,
based on my work situation I am unable to build up a sample site demonstrating this behaviour.
I am able to grant you access to a working site with this demonstration, but will not post the necessary data on this forum ^_-
Unfortunately I've not been able to find a solution for this problem yet.
Thank you for posting in the community.
I have investigated your scenario using version 11.1 and the code you have provided but am so far unable to replicate the scenario. In order to investigate this further I would need a working sample page demonstrating the behavior.
Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.html
Additional samples demonstrating the features of these grids can be found at:http://samples.infragistics.com/aspnet/
Please do not hesitate to contact me if you have any questions.