This is a migrated thread and some comments may be shown as answers.

[Solved] Paging using ObjectDataSource

2 Answers 184 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 26 May 2009, 04:09 PM
Hi

I have been trying to enable paging via ObjectDataSource.

My problem is that the MaximumRows parameter of my business method always recieves a value of 2147483647.

I have tried all variations: setting the AllowPaging, AllowCustomPaging and PageSize properties of RadGrid and MasterTableView.
None of the variations worked.

The ObjectDataSource is configured properly, it had worked together with DataGridView.

Do you have any ideas?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 May 2009, 04:40 AM
Hi  Peter,

Go through the following help article which explains how to implement Paging through ObjectDataSource.
Custom paging through ObjectDataSource population

You can also find an online demo which implements Custom paging in Grid populated with ObjectDataSource.
Custom Paging



Shinu

0
Peter
Top achievements
Rank 1
answered on 27 May 2009, 08:55 AM

Hi

It is the RadGrid that fails.

 

I have been debugging the source code.

 

First the SelectRows method in BLL is invoked with maximumRows parameter of 2147483647, then the SelectRowCount method is invoked (which returns 62) and then the grid is shown.

Within the RadGrid control PageSize is set to 50 and AllowPaging is enabled.

I hope this is a returning issue and there is a simple solution.

Thanks.
Tags
Grid
Asked by
Peter
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Peter
Top achievements
Rank 1
Share this question
or