1. #1
    Sencha User
    Join Date
    Mar 2011
    Posts
    63
    Vote Rating
    0
    jorgeluislay is an unknown quantity at this point

      0  

    Default Same grid with different stores

    Same grid with different stores


    Hi!

    I have a grid with a store. On top of the grid i have some tbar buttons, where i would like to define other stores but for the same grid (same reader, same filds, but different url).

    How is the best way to solve this ?

  2. #2
    Sencha User
    Join Date
    Jan 2011
    Posts
    544
    Vote Rating
    52
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    Change the url of your store on the button click using the setUrl method:
    http://docs.sencha.com/ext-js/3-4/#!...-method-setUrl

  3. #3
    Sencha User
    Join Date
    Mar 2011
    Posts
    63
    Vote Rating
    0
    jorgeluislay is an unknown quantity at this point

      0  

    Default


    you mean like this:
    PHP Code:
    me.getStore().setUrl("admin/newaddress/whatever.req"(false);
    me.getStore().reload(); 
    ??

  4. #4
    Sencha User
    Join Date
    Jan 2011
    Posts
    544
    Vote Rating
    52
    willigogs is a jewel in the rough willigogs is a jewel in the rough willigogs is a jewel in the rough

      0  

    Default


    Code:
    store.proxy.setUrl('new url goes here');

  5. #5
    Sencha User
    Join Date
    Mar 2011
    Posts
    63
    Vote Rating
    0
    jorgeluislay is an unknown quantity at this point

      0  

    Default


    Thank you. It works fine.

    I was trying to do some kind of setStore and after i change the url by setting this as a globel variable didnt really work and now i know, it was becouse of the proxy which is set to permanent and does not reconize the new url by doing a grid.getStore.load(new params and an other url).

Thread Participants: 1

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