1. #1
    Sencha User
    Join Date
    May 2009
    Posts
    214
    Vote Rating
    2
    TampaBay55 is on a distinguished road

      0  

    Default ExtJS4 Selector Question

    ExtJS4 Selector Question


    Greetings
    I am attempting to ref a grid that is in a region:
    Code:
    ...
    region: 'south',
    layout: 'fit',
    split: true,
    items:[{
         xtype: 'grid',
         border: false
         ...
    }]
    ...
    in the refs section of my controller but I do not know how to reference the actual grid inside the region:
    Code:
    {ref: 'myGrid',selector:'????'}
    Will someone please kick me in the right direction, please. Thank you.

  2. #2
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,341
    Vote Rating
    278
    ssamayoa has much to be proud of ssamayoa has much to be proud of ssamayoa has much to be proud of ssamayoa has much to be proud of ssamayoa has much to be proud of ssamayoa has much to be proud of ssamayoa has much to be proud of ssamayoa has much to be proud of

      0  

    Default


    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.ComponentQuery

    You should set itemId because in this case the only way to get the grid is "gridpanel" but such selector will target ANY gridpanel.
    UI: Sencha Architect 3.x / ExtJS 4 & 5
    Server side: JEE / EJB 3.x / CDI / JPA 2.x/ JAX-RS / JasperReports
    Application Server: Glassfish / WildFly
    Databases: Oracle / DB2 / MySQL / Firebird

    If you like my answer please vote!

  3. #3
    Sencha User
    Join Date
    May 2009
    Posts
    214
    Vote Rating
    2
    TampaBay55 is on a distinguished road

      0  

    Default


    Thanks ssamayoa!

    That's exactly what I did after some sleep on it and it worked perfectly. I just didn't have an opportunity to update my request. It is, on the other hand, good to know that I am beginning to think in the same lines as seasoned EXTJS programmers. Thanks again!

Thread Participants: 1