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 User skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,081
    Vote Rating
    112
    skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold skirtle is a splendid one to behold

      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
    171
    Vote Rating
    41
    loiane has a spectacular aura about loiane has a spectacular aura about loiane has a spectacular aura about

      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