views:

46

answers:

3

Regarding ASP.NET's GridView server control:

Can I bind to a datasource in the code-behind, load the entire resultset, and then implement client-side paging without postbacks?

If this isn't possible with GridView, I'm willing to implement a custom solution.

EDIT: My GridView instance sits inside of a nyroModal (jQuery) pop-up div, which is why I need a non-postback solution.

A: 

I would suggest using some custom form of javascript templating instead. You'll have to implement more or less all of that anyway with a gridview, but here someone has already thought about the client side aspect.

Tomas Lycken
A: 

It is possible, but that would mean that you'd have to send the entire result set to the client at the beginning and that would make the initial page load slower (depending on how many records you have in the result set).

I'd say use AJAX to post back and get the data for the next page in the grid.

del.ave
A: 

The jQuery tablesorter pager plug-in might work.

Jim G.