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
    541
    Vote Rating
    50
    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
    541
    Vote Rating
    50
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar