1. #41
    Sencha User
    Join Date
    Sep 2009
    Posts
    28
    Vote Rating
    0
    Dustin Graham is on a distinguished road

      0  

    Default


    Quote Originally Posted by Condor View Post
    Yes, there are more people asking for this...

    PagingStore isn't capable of doing this, so it would require extra coding on your part (you need to add the extra loaded data to the internal allData MixedCollection).
    First off: Condor, thanks for this awesome thread. :-)

    So... While the paging example uses the forums and has 280,000+ results, they obviously should not all be sent to the client. So, remote paging is good.

    But, I am wondering since this plugin is for a PagingStore... doesn't that mean that all the data is local?

    So, in my case I have 10,000+ company records. I simply send all the records on the load() call and it results in a file that is ~500kb when zipped.

    This data then resides in the datastore which I use across various forms and grids. I added the paging store so that the grid with the bufferview and pagingtoolbar shows only 250 records at a time.

    It scrolls very fast, and paging is instant. I can click next/prev/last/first and near instantly I have my next set of 250 records in the grid.

    My question: Is this the right way? I believe I will be expanding the number of variables in the data record as well as increase the number of company records, so my data will continue to grow. But, it seems like perhaps a one shot send at application load is the way to go. Maybe it takes 30 seconds or a minute to download 1Mb or 2Mb of data, but then it can be accessed rapidly using the PagingStore. Will that work?

  2. #42
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    PagingStore loads all the data into memory. This means that it shouldn't be used when there is a lot of data, especially on old javascript engines (IE6/7). For big datasets, remote paging is the way to go.

  3. #43
    Ext User
    Join Date
    Feb 2008
    Posts
    200
    Vote Rating
    2
    tomcheng76 is on a distinguished road

      0  

    Default


    great plugin, thanks.

    Should this.allData/this.snapshot use insert (same as this.data) instead of addAll in the insert function?

    As insert function is supplying an index argument and addAll just push them into the end of the array. Thanks!

  4. #44
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Quote Originally Posted by tomcheng76 View Post
    great plugin, thanks.

    Should this.allData/this.snapshot use insert (same as this.data) instead of addAll in the insert function?

    As insert function is supplying an index argument and addAll just push them into the end of the array. Thanks!
    There is a discussion about this in a different thread. The problem is that the snapshot can contain a lot more data and the insert position is probably not the same.
    I finally ended up just adding all the records, but I also proposed a solution where the records would be added after the record at the specified position.

    ps. I agree with you on allData. There the index can be determined correctly (index = start + index).

  5. #45
    Ext User
    Join Date
    Feb 2008
    Posts
    200
    Vote Rating
    2
    tomcheng76 is on a distinguished road

      0  

    Default


    Quote Originally Posted by Condor View Post
    There is a discussion about this in a different thread. The problem is that the snapshot can contain a lot more data and the insert position is probably not the same.
    I finally ended up just adding all the records, but I also proposed a solution where the records would be added after the record at the specified position.

    ps. I agree with you on allData. There the index can be determined correctly (index = start + index).
    Would u mind pointing me to that thread?

    Once more question. What is the usage of this.snapshot? Thanks in advance.

  6. #46
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    This is one of the threads I was talking about.

    In a standard store the 'snapshot' contains all records and 'data' contains the filtered records.

    In a PagingStore, 'snapshot' will contain all records, 'allData' contains the filtered records and 'data' contains the filtered and paged records.

  7. #47
    Ext User
    Join Date
    Feb 2008
    Posts
    200
    Vote Rating
    2
    tomcheng76 is on a distinguished road

      0  

    Default


    Quote Originally Posted by Condor View Post
    This is one of the threads I was talking about.

    In a standard store the 'snapshot' contains all records and 'data' contains the filtered records.

    In a PagingStore, 'snapshot' will contain all records, 'allData' contains the filtered records and 'data' contains the filtered and paged records.
    Thanks. this is helpful.

  8. #48
    Ext User
    Join Date
    Oct 2008
    Posts
    127
    Vote Rating
    0
    wp.joju is on a distinguished road

      0  

    Default


    ok finally got it to work now... the current problem is that my grid is on a window with a card layout and each time i click on the paging toolbar's next or previous page,,, the wizard is going to the next step

  9. #49
    Ext User
    Join Date
    Oct 2009
    Location
    Barcelona
    Posts
    14
    Vote Rating
    0
    tdteti_ is on a distinguished road

      0  

    Default Download "PagingStore3_v0.4.1.zip" file is failing...

    Download "PagingStore3_v0.4.1.zip" file is failing...


    Hi Condor,
    I am trying to download the "PagingStore3_v0.4.1.zip" attached file, and it seems is failing (Error message: Posible cause - File transfer error). Could you attach it again, please?

    The case is that I am doing the same type of combo and my problem is the same (live-search). That search is only working over the current page to which the combobox is showing. It means, if I try to search a value to which is missing on the current page (although it exist dataset) that is not found and not filtered. I am seeing each time the paging (|<, < ,>, >|) buttons are pressed, the 'store' object is only loaded with the current page data and this is the reason the search only works over these data... I would need to solve it. It means, the search works over all dataset like with 'remote' (forum-search.js). Is that possible? Is there a solution through the information including in that file?

    Thanks in advance for you help!
    kind regards.

  10. #50
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    89
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Didn't you read the note? You can't download forum attachments using IE. You need to use a different browser.

Thread Participants: 106

  1. Animal (3 Posts)
  2. galdaka (2 Posts)
  3. cgi-bin (4 Posts)
  4. tchitani (4 Posts)
  5. tobiu (1 Post)
  6. steffenk (1 Post)
  7. renaudham (1 Post)
  8. markpele (1 Post)
  9. Sesshomurai (1 Post)
  10. teddyjas (5 Posts)
  11. buergi (2 Posts)
  12. Buzzwords (2 Posts)
  13. tomcheng76 (4 Posts)
  14. kveeiv (1 Post)
  15. dhisnotnull (2 Posts)
  16. walldorff (1 Post)
  17. brizardh (2 Posts)
  18. elizard (1 Post)
  19. Remy (1 Post)
  20. renoye (8 Posts)
  21. despay (1 Post)
  22. lwexler (2 Posts)
  23. tomim (1 Post)
  24. Mjollnir26 (1 Post)
  25. allenlako (3 Posts)
  26. Andrea Gioia (1 Post)
  27. wp.joju (1 Post)
  28. genio (2 Posts)
  29. 828 (1 Post)
  30. ljschrenk (4 Posts)
  31. diablo (3 Posts)
  32. blakel (1 Post)
  33. Grolubao (2 Posts)
  34. makiavelli (2 Posts)
  35. elesel (1 Post)
  36. Capt.JackSparrow (2 Posts)
  37. ferryman (3 Posts)
  38. cwford (1 Post)
  39. 3dm (1 Post)
  40. imnilesh (1 Post)
  41. Rotterdam (2 Posts)
  42. nandubochkar (1 Post)
  43. Dustin Graham (1 Post)
  44. Boing (2 Posts)
  45. tdteti_ (8 Posts)
  46. vtulin (2 Posts)
  47. hello (1 Post)
  48. PranKe01 (2 Posts)
  49. jbusuulwa (6 Posts)
  50. cwilson (1 Post)
  51. ronaldploeger (1 Post)
  52. scblue (1 Post)
  53. saadkhan (2 Posts)
  54. subbugv (6 Posts)
  55. p3p3 (1 Post)
  56. computeraholic (1 Post)
  57. calabacita (3 Posts)
  58. aghextjs (1 Post)
  59. Arindam Das (1 Post)
  60. aw_zahid (1 Post)
  61. deister (1 Post)
  62. billprince (1 Post)
  63. amol.gaikwad (2 Posts)
  64. george4rotech (7 Posts)
  65. leonrenkema (1 Post)
  66. mvassau (1 Post)
  67. aDoF96 (2 Posts)
  68. attack11 (3 Posts)
  69. chakrics (1 Post)
  70. thangamalar (3 Posts)
  71. mayurid (1 Post)
  72. Lobo (1 Post)
  73. christian130 (3 Posts)
  74. elbino (3 Posts)
  75. eashwaranp (1 Post)
  76. atul.sachan@capgemini.com (3 Posts)
  77. Joe Kuan (1 Post)
  78. kent78 (4 Posts)
  79. dsk1962 (1 Post)
  80. Woodlander (3 Posts)
  81. msmolyak (1 Post)
  82. mond (4 Posts)
  83. anandhasubha (1 Post)
  84. David Warren (1 Post)
  85. colinm (2 Posts)
  86. sothea (1 Post)
  87. incanus (1 Post)
  88. MarceloCajr (1 Post)
  89. knackwurst (1 Post)
  90. Pattie (1 Post)
  91. parnold3 (1 Post)
  92. StanimirPanchev (1 Post)
  93. palashkumar1010 (1 Post)
  94. ash4aque (3 Posts)
  95. farfar (3 Posts)
  96. PrashanthShetty (1 Post)
  97. brprashanth (2 Posts)
  98. perseusy (3 Posts)
  99. theWalli (1 Post)
  100. hieu79vn (1 Post)
  101. Hisamitsu (1 Post)
  102. hensor (1 Post)
  103. northmh (3 Posts)
  104. parax (1 Post)
  105. PankajG (1 Post)
  106. reedcat (1 Post)