Results 1 to 4 of 4

Thread: How to get the current loaded data on infinite grid?

  1. #1
    Sencha Premium Member darwin_e's Avatar
    Join Date
    Nov 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default Unanswered: How to get the current loaded data on infinite grid?

    Is there a way to get the current data loaded on the infinite grid?

    Here is my scenario:
    I have a infinite grid and I scroll it down (let say the scroll position is at the middle). I have to get the data that is visible on the grid. Is there a way to get it?


    Thanks,

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Answers
    501
    Vote Rating
    249
      0  

    Default

    You're looking for just the data for the rows visible or all data currently loaded / cached in the store?

  3. #3
    Sencha Premium Member darwin_e's Avatar
    Join Date
    Nov 2012
    Posts
    10
    Vote Rating
    0
      0  

    Default

    Yes, I just need the data for the rows visible.

  4. #4
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,154
    Answers
    501
    Vote Rating
    249
      0  

    Default

    There's not a convenience method to get the data for the visible rows, but what I believe others have done is get the region of the grid view and loop through the records in the store and get their HTML nodes and then those nodes' regions and see if they intersect the view's region.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •