1. #131
    Ext User
    Join Date
    May 2010
    Posts
    9
    Vote Rating
    0
    aDoF96 is on a distinguished road

      0  

    Default


    Quote Originally Posted by aDoF96 View Post
    Hi!

    I'm using PagingGroupingStore in a grid and everything is fine with that, but the sort options of the grid don't work :\
    Is it normal this conflict?
    Help here please!!

  2. #132
    Sencha Premium Member
    Join Date
    May 2007
    Posts
    57
    Vote Rating
    0
    tchitani is on a distinguished road

      0  

    Default


    Thanks Condor, I'm trying to implement your idea of dynamic paging based on group records to avoid group spanning, but...I can not get the total number of the records to properly setup paging (on the initial load).
    PHP Code:
    var reader = new Ext.data.JsonReader({
      
    root'results',
      
    totalProperty'total',
      
    successProperty'success'
      
    fields: [{name'application'},{name'system'}]
    });
    var 
    store = new Ext.ux.data.PagingGroupingStore({
      
    readerreader,
      
    proxy: new Ext.data.HttpProxy({
        
    url'data.txt',    method'GET'
      
    }),
      
    sortInfo: {field'application'direction"ASC"},
      
    groupField'system'
      
    autoLoad: {params: {start0limitreader.totalProperty}} // limit undefined
    });
    store.suspendEvents();
    store.load({
      
    callback: function(){
        var 
    uArr store.collect('system');
        var 
    records = [];
        var 
    limit 0;
        for (var 
    0uArr.lengthi++) {
          var 
    fl Math.round(uArr.length/2)
          var 
    re = new RegExp(RegExp.escape(uArr[i])); 
          
    records[i] = store.queryBy(function(r) { return r.get('system').match(re); }); 
          if (
    i<fllimit += records[i].items.length;
        }
        
    store.resumeEvents();
        
    store.load({params: {start0limitlimit}});
      }
    });
    var 
    bbar = new Ext.ux.PagingToolbar({
      
    storestore,
      
    pageSizestore.getTotalCount(), // total undefined
      
    displayInfotrue,
      
    displayMsg'Displaying {0} - {1} of {2}',
      
    emptyMsg"No records to display"
    }); 

  3. #133
    Sencha Premium Member
    Join Date
    May 2007
    Posts
    57
    Vote Rating
    0
    tchitani is on a distinguished road

      0  

    Default


    data.txt file
    PHP Code:
    {'success'true
    'total'43
    'results': [
        {
    'application':'Application 1''system':'System A'},
        {
    'application':'Application 2''system':'System B'},
        {
    'application':'Application 3''system':'System C'},
        {
    'application':'Application 4''system':'System D'},
        {
    'application':'Application 5''system':'System E'},
        {
    'application':'Application 6''system':'System D'},
        {
    'application':'Application 7''system':'System E'},
        {
    'application':'Application 8''system':'System B'},
        {
    'application':'Application 9''system':'System A'},
        {
    'application':'Application 10''system':'System F'},
        {
    'application':'Application 11''system':'System A'},
        {
    'application':'Application 12''system':'System A'},
        {
    'application':'Application 13''system':'System D'},
        {
    'application':'Application 14''system':'System D'},
        {
    'application':'Application 15''system':'System E'},
        {
    'application':'Application 16''system':'System C'},
        {
    'application':'Application 17''system':'System C'},
        {
    'application':'Application 18''system':'System C'},
        {
    'application':'Application 19''system':'System D'},
        {
    'application':'Application 20''system':'System D'},
        {
    'application':'Application 21''system':'System B'},
        {
    'application':'Application 22''system':'System B'},
        {
    'application':'Application 23''system':'System A'},
        {
    'application':'Application 24''system':'System A'},
        {
    'application':'Application 25''system':'System A'},
        {
    'application':'Application 26''system':'System A'},
        {
    'application':'Application 27''system':'System B'},
        {
    'application':'Application 28''system':'System D'},
        {
    'application':'Application 29''system':'System E'},
        {
    'application':'Application 30''system':'System E'},
        {
    'application':'Application 31''system':'System E'},
        {
    'application':'Application 32''system':'System E'},
        {
    'application':'Application 33''system':'System A'},
        {
    'application':'Application 34''system':'System A'},
        {
    'application':'Application 35''system':'System C'},
        {
    'application':'Application 36''system':'System C'},
        {
    'application':'Application 37''system':'System C'},
        {
    'application':'Application 38''system':'System C'},
        {
    'application':'Application 39''system':'System C'},
        {
    'application':'Application 40''system':'System F'},
        {
    'application':'Application 41''system':'System F'},
        {
    'application':'Application 42''system':'System C'},
        {
    'application':'Application 43''system':'System D'}
    ]} 

  4. #134
    Sencha User attack11's Avatar
    Join Date
    May 2010
    Location
    Ottawa, ON
    Posts
    9
    Vote Rating
    0
    attack11 is on a distinguished road

      0  

    Default


    Hi,

    Has anyone loaded 10-20k records into a store? The guys I'm working with have tried XML and JSON stores, and the performance is great (3-12sec) in everything we try, except Firefox where the performance is 4-5x slower (Safari is the best, then Chrome/IE, then FF at a very slow last). I'm working on a related GUI that uses 2 grids that are supposed to have up to 100k records.

  5. #135
    Ext User
    Join Date
    Apr 2010
    Location
    Orlando, FL
    Posts
    61
    Vote Rating
    0
    george4rotech is on a distinguished road

      0  

    Default


    Quote Originally Posted by attack11 View Post
    Hi,

    Has anyone loaded 10-20k records into a store? The guys I'm working with have tried XML and JSON stores, and the performance is great (3-12sec) in everything we try, except Firefox where the performance is 4-5x slower (Safari is the best, then Chrome/IE, then FF at a very slow last). I'm working on a related GUI that uses 2 grids that are supposed to have up to 100k records.
    In my experience typically if FF is slower than IE at anything, its because I've left Firebug open.
    http://code.google.com/p/deskml/ .... Powering the "Desk Wide Web"

  6. #136
    Sencha User attack11's Avatar
    Join Date
    May 2010
    Location
    Ottawa, ON
    Posts
    9
    Vote Rating
    0
    attack11 is on a distinguished road

      0  

    Default


    Apparently that was the case. Good news imo

  7. #137
    Sencha User attack11's Avatar
    Join Date
    May 2010
    Location
    Ottawa, ON
    Posts
    9
    Vote Rating
    0
    attack11 is on a distinguished road

      0  

    Default


    Hi hi,

    I was just debugging my multi-grid GUI and noticed that .addSorted() is not in the class and it throws up a record error (for obv reasons).

    It'd be nice to have that method.

  8. #138
    Ext User
    Join Date
    Oct 2009
    Posts
    40
    Vote Rating
    0
    vtulin is on a distinguished road

      0  

    Default


    Hi, Condor!

    thank you for your module! Could you please help me with my trouble:
    I'm using a store locally, and to have a greater performance, I'm filtering data using XPath, it's much more simplier and faster. When I'm using my store without paging I'm just changing my proxy, and load data again:
    Code:
    grid.store.proxy = new Ext.data.MemoryProxy(xml);
    grid.store.load();
    all works fine, but when I'm using a paging store, the same method works, but it breaks paging, and if I'm doing the following:
    Code:
    grid.store.proxy = new Ext.data.MemoryProxy(xml);
    grid.store.load({ params: { start: 0, limit: 15} });
    it does nothing, the source is not changing.

    What should I do to reload an XML to my paging store?

    Thank you.

    P.S. I've posted the same theme here http://www.extjs.com/forum/showthrea...source-runtime

  9. #139
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    86
    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


    You can't change the proxy of a store!

    You should be using:
    Code:
    grid.getStore().proxy.data = xml; // assuming the proxy already is a MemoryProxy.
    delete grid.getStore().lastOptions; // makes PagingStore request new data instead of returning page.
    grid.getStore().load({params: {start: 0, limit: 15}});

  10. #140
    Ext User
    Join Date
    Oct 2009
    Posts
    40
    Vote Rating
    0
    vtulin is on a distinguished road

      0  

    Default


    Still nothing... Maybe something wrong with lastOptions? What is it purpose? When I'm removing this property from store all work absolutely the same.

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)
Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi