Can someone tell me if what I want to do is possible (asp.net 4)
Ok I have a businesslogic object called CityBusinessObject. it has a public method called GetCities() This does a bunch of magic using EF and Linq, and returns a list of city objects into a public property. I link this up to my JQgrid by setting the datasource to the property, and it works awesomely. I can get it to page also (10 records at a time)
but this is client side, and not very efficient.
I would prefer to have a public method called GetCitiesbyPage(int skip, int take) which then gets called whenever the grid does a page.
my question is 1. how do i get the grid to call my GetCitiesbyPage method whith values for the skip and take 2. how do i get the grid to still know about all the other pages all the time without holding the data. i.e. skip(0).take(10) will effectively only have 10 rows in it, therefore the grid only "knows" about 10 rows, therefore 1 page