I've run into a weird little problem with page sizes and a custom pager template.
I'm using the javascript supplied in the sample http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Programming/PagerTemplate/DefaultCS.aspx
to change page number and page size, which works perfectly fine.
The problem is that when I construct the Grid initially (i.e. !IsPostBack) I'm setting grid.PageSize and grid.MasterTableView.PageSize to 30 (our preferred default).
That works fine until I hit a page change link when the page size subsequently resets itself back to the default value 10.
If I change the page size from the client, the new page size is retained on subsequent post-backs, otherwise it remains at 10.
It looks like the viewstate value of the page size is somehow not picking up the server side change despite it being done before the grid is added to the control tree.
Is there any way around this problem, perhaps something else I can set server side which will fix it?
I can provide a simple example if that helps.
I'm using the javascript supplied in the sample http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Programming/PagerTemplate/DefaultCS.aspx
to change page number and page size, which works perfectly fine.
The problem is that when I construct the Grid initially (i.e. !IsPostBack) I'm setting grid.PageSize and grid.MasterTableView.PageSize to 30 (our preferred default).
That works fine until I hit a page change link when the page size subsequently resets itself back to the default value 10.
If I change the page size from the client, the new page size is retained on subsequent post-backs, otherwise it remains at 10.
It looks like the viewstate value of the page size is somehow not picking up the server side change despite it being done before the grid is added to the control tree.
Is there any way around this problem, perhaps something else I can set server side which will fix it?
I can provide a simple example if that helps.