1. #1
    Sencha User
    Join Date
    Jul 2012
    Posts
    55
    Vote Rating
    0
    srxx123 is on a distinguished road

      0  

    Default Grid panel with paging toolbar and linked class

    Grid panel with paging toolbar and linked class


    Hi,

    I have defined a grid panel with a paging toolbar in a SA project as top level component (class).
    Then I have created to linked instances to this class. The problem is, that the paging toolbar of both instances is now bound to the store which is defined in the top level class and it seems that I cannot override the toolbar store in the linked instances.

    How can I solve this problem?

    Thank you

  2. #2
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,510
    Vote Rating
    288
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    I'm not entirely following the question but it sounds to me like this is more an Architect question than an ExtJS question so I'm going to move this thread.

  3. #3
    Sencha User loiane's Avatar
    Join Date
    Aug 2009
    Posts
    181
    Vote Rating
    52
    loiane is a jewel in the rough loiane is a jewel in the rough loiane is a jewel in the rough

      0  

    Default


    Yes you can.
    Just select the toolbar in your grid you want to override the store, and set the value you want

    Like this:

    PHP Code:
    dockedItems: [                {                    xtype'mypagingtoolbar',                    dock'left',                    store'MyJsonStore'                }            ] 
    Sencha/Java evangelist
    Author of ExtJS 4 First Look and Mastering Ext JS books
    English blog: http://loianegroner.com
    Portuguese blog: http://loiane.com
    Sencha Examples: https://github.com/loiane

Thread Participants: 2