-
22 Apr 2009 5:54 AM #1
tick all checkboxes in a gridPanel in a formPanel
tick all checkboxes in a gridPanel in a formPanel
hello guys,
I have a gridpanel inside a formpanel inside a window.
I have a button and a listener set up to tick teh bixes, but i cant seem to get the checkbox element.
Its enumerated so its like checks[0] checks[1] checks[40] checks[50] in the name field of the input.
I tried
i triedCode:click: function() { Ext.each(Ext.getCmp('updateUserGroupsFormPanel').getForm().findField('checks'), function(){ alert('dd'); }); alert('dd'); }
Ext.getCmp('updateUserGroupsFormPanel').getForm().findField('checks')
in firebug it dosent get the checkboxes
i also tried findField('checks[]')
this works Ext.getCmp('updateUserGroupsFormPanel').getForm().getEl('checkbox')
Dosent work,
Thanks
-
22 Apr 2009 6:10 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,169
- Vote Rating
- 28
Keep in mind: in the grid panel, it's different because you have to update the store.

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
22 Apr 2009 6:11 AM #3


Reply With Quote