On a majority of my forms I Pre-Bind RadGrids on the Server, but after the form is loaded I use WebServices (asmx) and Client side binding to update the RadGrid using Client Side Binding.
My problem is Pagination does not working (or isn't visible) after a client side bind if the Radgrid was already bound to a list on the Server with a datasource <= to the radgrids pagesize.
For Example
My grid has a pagesize of 10.
It was bound to Six records on the Pageload.
Then after the page has loaded the User proceeds to change the Search Criteria and invoke the WebService which returns 10 records with a Total Virtual count of 140. The 10 Records show up fine, column sorting works but no Pagingation is Visible.
If what is bound on the Server is greater then the Radgrids PageSize pagination works for future Client side binds.
Here is what my client side bind looks like:
var tableView = $find('<%= grdWorkItems.ClientID %>').get_masterTableView(); |
tableView.set_virtualItemCount(result.TotalRecordCount); |
tableView.set_dataSource(result.Records); |
tableView.dataBind(); |
tableView.clearSelectedItems(); |
Have you guys seen this before am I missing something.
Thanks,
Marc