1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    30
    Vote Rating
    1
    sidamos77 is on a distinguished road

      0  

    Default HowTo change the complete data of a grid panel?

    HowTo change the complete data of a grid panel?


    HI!

    I have a grid panel with buffered store and my own proxy to get the data. Sorting and filtering is being done remote.

    Now when the user types in some filter text I want to completely reload the grid. How can I do that?

    I found a hack here:
    http://www.sencha.com/forum/showthre...ia-user-action

    But it is not working for me and it is pretty heavy modification of standard Ext classes. It seems, a buffered store is not meant to be completely refilled with new data.

    What about the grid? Can I attach a new store to the grid at runtime?

    I tried grid.reconfigure(newStore) and newStore.guaranteeRange(0, 100) with little success. The data is being loaded by the store, but the grid is blank afterwards and the scrollbar is not reset.

    Is there any working and less hacky way to simply change the data of a grid? That has to be possible somehow.

    Thanks!

    Thomas

  2. #2
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    20
    Vote Rating
    0
    c2c-shiner is on a distinguished road

      0  

    Default


    grid.reconfigure(newStore, colModel);

    try adding the grid current colmodel also

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    30
    Vote Rating
    1
    sidamos77 is on a distinguished road

      0  

    Default


    Thanks for the tip.

    You mean the array of column models that I passed to the grid as "columns" config?

    I tried as you suggested, but it did not help unfortunately. Same effect.

  4. #4
    Sencha User
    Join Date
    Mar 2011
    Posts
    30
    Vote Rating
    1
    sidamos77 is on a distinguished road

      0  

    Default


    Does no one have a working solution for this? This should be a common use-case. For unbuffered stores, it's working.

    This is clearly a showstopper for us. If this is not possible, we can't use/buy ExtJs.

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Location
    Franklin, TN
    Posts
    16
    Vote Rating
    0
    walker2287 is on a distinguished road

      0  

    Default


    try using
    someGrid.getView().bindStore(someStore);

    that solved a simular issue for me.

    the fact the reconfigure doesn't do what its suppose to is really frustrating.

Thread Participants: 2

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