-
6 Feb 2013 2:55 PM #1
ExtJS4 Selector Question
ExtJS4 Selector Question
Greetings
I am attempting to ref a grid that is in a region:
in the refs section of my controller but I do not know how to reference the actual grid inside the region:Code:... region: 'south', layout: 'fit', split: true, items:[{ xtype: 'grid', border: false ... }] ...
Will someone please kick me in the right direction, please. Thank you.Code:{ref: 'myGrid',selector:'????'}
-
7 Feb 2013 8:50 AM #2
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 2.x / ExtJS 4 MVC
Server side: EJB 3.1 / CDI / JPA 2 / JAX-RS / JasperReports
Application Server: Glassfish 3.1.x
Databases: Oracle 10g & 11g / DB2 9 & 10 / Firebird 2.5
If you like my answer please vote!
-
7 Feb 2013 9:04 AM #3
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!


Reply With Quote