Welcome Guest Search | Active Topics | Sign In | Register

Grid, LinqDataSource and Paging Options
Mike
Posted: Monday, June 11, 2012 9:04:05 AM
Rank: Newbie
Groups: Member

Joined: 6/11/2012
Posts: 6
Hi Everyone

I've tried to use your Grid with a LinqDataSource but ran into the issue that i actuely can bind the LinqDataSource to the Grid, but im not able to Page it.

Since this is a rather complex problem, i've tried to simplify it down and created a simple aspx page to show what i encountered

I wasn't able to use an IQueryable<T> for the this example, but the issue also occurs when using a simple IEnumerable<T>.
Here's a like to my aspx file: https://dl.dropbox.com/u/13288666/EOTest.zip

Does anyone have a clue how I can get paging to work while using a LinqDataSource?

Thanks in advance!
Cheers
Mike

eo_support
Posted: Monday, June 11, 2012 9:11:14 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

All pagings are done by the Grid, not by your LinqDataSource control. You can either have your data source to return all the rows and bind the Grid at once, then allow the Grid to page all the records on the client side; Or code your data source to only return rows for the "current page" and rebind the Grid whenever the current page changes. You can find more details about paging support here:

http://www.essentialobjects.com/doc/1/grid/paging.aspx

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.