Results 1 to 2 of 2

Thread: How to get dynamically created panel item values on button click...

  1. #1

    Default How to get dynamically created panel item values on button click...

    var fileBtn = new Ext.Button({text : 'File',handler : myBtnHandler});var editBtn = new Ext.Button({text : 'Edit',handler : myBtnHandler});var myTopToolbar = new Ext.Toolbar({items : [ fileBtn,editBtn]}); var tab = tabPanel.add(Ext.widget('panel', { title: 'Build Cron',width: 200,bodyPadding: 10,renderTo: Ext.getBody(),tbar : myTopToolbar, items:[{xtype: 'combobox',margin: 4,fieldLabel:'Seconds', itemId: 'second', allowBlank: false, storeecondStore,valueField: 'storeValue',displayField: 'displayValue',forceSelection: true,typeAhead: true,triggerAction: 'all',selectOnFocus: true,editable: true,queryMode: 'local',lastQuery: '' }]}));var myBtnHandler = function(btn) { // I need Combo box selected values here
    };

  2. #2
    Sencha User slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,165

    Default

    You're just looking to get the value from the combobox on button click, is that correct?

    Also, what version of ExtJS are you working with?

Posting Permissions

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