linq take() and skip() methods with datastore and paging

  1. #1

    linq take() and skip() methods with datastore and paging

    hi,
    i am little confused here, so please clear it out for me.
    as i understand the binding between coolite grid and datastore is client side binding, and to get data from linq efficiently you have to use take() and skip() to pull let us say 50 records each time.
    now my question is how to let hte grid paging of coolite to connect with linq take() and skip() to pull next 50 records when you reach hte end of the first 50 records in paging ?

    thanks in advanced
  2. #2

    RE: linq take() and skip() methods with datastore and paging

    kindly, any help on htis please
  3. #3

    RE: linq take() and skip() methods with datastore and paging

    please any clarification on this ?

  4. #4

    RE: linq take() and skip() methods with datastore and paging

    Maybe the linq samples in following DataController MVC can help.*

    Specifically .GetCustomers()

    http://code.google.com/p/coolite-mvc...aController.cs



    Hope this helps.



    Geoffrey McGill
    Founder
  5. #5

    RE: linq take() and skip() methods with datastore and paging

    first thanks a lot for the answering,

    though i did not understand fully what is happening because it is MVC and i don't know a jack about it, but from what i understood is that you have to pass the following for return data store

    return new AjaxStoreResult(query.Skip(start).Take(1), query.Count());
    now i totally understand the query.count param
    but where will i be getting the start param from ? and make skip() and take() dynamic and not value of 1 ?
    so to be more preciese is how to supply these tow paramters from hte coolite pager ?





Similar Threads

  1. [CLOSED] Tab navigation skip hidden row in GridPanel
    By leon_tang in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: May 13, 2011, 4:28 PM
  2. [CLOSED] DataStore javascript error
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Nov 25, 2010, 11:06 AM
  3. [1.0] DataStore Record Field Bug
    By protactinium in forum 1.x Help
    Replies: 1
    Last Post: May 17, 2010, 7:07 PM
  4. [CLOSED] ID for new DataStore Record
    By Steve in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 14, 2009, 1:57 PM
  5. [CLOSED] Loading JSON to datastore
    By UGRev in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 21, 2009, 4:56 PM

Posting Permissions