Hello
I have a webgrid that uses LoadOnDemand(xml) and Paging (also xml). When a page link is pressed, the "loading" cursor is shown, but after a while the new page is not displayed - I still see page 1. The grid is bound at runtime to a hierarchical dataset (two tables). By the way, loading on demand the second band's rows do work.
What could be wrong?
Private m_objDS As New DS_MyTypedDataSetPrivate m_strConnectionString As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load m_strConnectionString = "Data Source=MyServer; Initial Catalog=MyDB;User ID=sa; Password=xyz;"
UltraWebGrid1.DisplayLayout.Pager.AllowPaging = True UltraWebGrid1.DisplayLayout.Pager.PageSize = 20
LoadDataSet()
UltraWebGrid1.DataSource = m_objDS UltraWebGrid1.DataBind()
End Sub
Thanks a lot.
Hello,
I think you can take a look at the following forums post whici discusses scenarios about paging and sorting at the same time. The last post in particular provides one possible solution.
http://forums.infragistics.com/forums/t/15374.aspx
Hi,
I also got paging problem in Ultrawebgrid.. Let me tell u the scanior.
I had two Ultrawebgrid.Intially first gird is loaded with paging and soritng. when user click on any row of first grid then the second grid is populated.
Issue is when the first gird is populated it has paging suppose 4 pages. the user click on soritng on any column it is fine but when user click on any row after sorting the paging of first grid disappears.
regards,
Saqib Ali
Thanks for sharing. I see that you have also updated the other open thread on that issue - thanks for that. EnableInternalRowsManagement means that the grid takes care of paging, sorting, etc automatically and there is no need to handle certain action events like PageIndexChange, SortColumn, GroupBy, etc.
Thanks again for sharing the solution in public forums.
Hi ,
EnableInternalRowsManagement = True
is working fine in my case.
Again thanks a lot.
Shahaji Udar
Anyone have a solution to the original problem? I've got the exact thing happening as well:
void uwgMain_InitializeDataSource(object sender, Infragistics.WebUI.UltraWebGrid.UltraGridEventArgs e)
{
}
All the props are set properly as per guidelines in http://help.infragistics.com/Help/NetAdvantage/NET/2007.3/CLR2.0/html/WebGrid_Using_XML_Load_On_Demand.html, etc.
However, when I try to click on the pager, it blanks out *everything*. How do you guys get it to work in your samples??
Thanks,
-Andrew