Results 1 to 3 of 3

Thread: ExtJS4 Selector Question

  1. #1
    Sencha User
    Join Date
    May 2009
    Posts
    284
    Vote Rating
    3
      0  

    Default 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,527
    Vote Rating
    351
      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 - 6
    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
    284
    Vote Rating
    3
      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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •