I have a RadGrid that I would like to change the size of the page and the current page number depending on the URL.
I can query the URL and retrieve the data that I would like, and attempt to apply it like so:
I do this in the Page.PreRender. The CurrentPageIndex will save correctly, but unfortunately the PageSize does not change.
I have attempted to paste this code into the function I call to fill the grid as well as the NeedDataSource(of course removing the rebind call) to no avail.
I am just wondering why one would save but not the other? Also I would like to know if I am attempting to change the PageSize in the backend correctly.
I can query the URL and retrieve the data that I would like, and attempt to apply it like so:
Dim pageSize As Integer = 10Dim pageNum As Integer = 0If Request.QueryString("PageSize") IsNot Nothing Then pageSize = Request.QueryString("PageSize") rgvListObservations.PageSize = pageSize rgvListObservations.Rebind()End IfIf Request.QueryString("PageNum") IsNot Nothing Then pageNum = Request.QueryString("PageNum") rgvListObservations.CurrentPageIndex = pageNum rgvListObservations.Rebind()End IfI do this in the Page.PreRender. The CurrentPageIndex will save correctly, but unfortunately the PageSize does not change.
I have attempted to paste this code into the function I call to fill the grid as well as the NeedDataSource(of course removing the rebind call) to no avail.
I am just wondering why one would save but not the other? Also I would like to know if I am attempting to change the PageSize in the backend correctly.
