Results 1 to 3 of 3

Thread: submit elements from tabs in a tabpanel

  1. #1
    Sencha User
    Join Date
    Feb 2009
    Location
    Berlin
    Posts
    4
    Vote Rating
    0
      0  

    Default submit elements from tabs in a tabpanel

    how can i submit elements from a tab (Idee Basisdaten)? here is a excerpt of my code (buttons in tbar are defined):

    Ext.onReady(function(){
    Ext.QuickTips.init();

    Ext.form.Field.prototype.msgTarget = 'side';

    ............................................

    var progressbar = new Ext.ProgressBar({
    text:'Initializing...'
    ,id:'progressbar'
    ,width : 300
    /*,textEl:'p4text'*/
    ,cls:'custom'
    /*,renderTo:'p4'*/
    });

    var tabpanel = new Ext.TabPanel({
    id: 'tabpanel'
    ,title : "Idee erfassen"
    ,region: 'center'
    ,width : 790
    ,height : 465
    ,deferredRender : false
    ,border : false
    ,defaults : {autoHeight:true, bodyStyle:'padding:10px'}
    ,activeTab : 0
    ,items : [{
    xtype : "panel"
    ,title : "Idee Basisdaten"
    ,width : 790
    ,heigth : 465
    ,layout : 'form'
    ,items : [{
    layout:'column',
    border:false,
    items:[{
    columnWidth:.8
    ,layout: 'form'
    ,border:false
    ,labelWidth : 75
    ,items: [{
    xtype:'textfield'
    ,name : 'name'
    ,fieldLabel : 'Name'
    ,xtype : 'textfield'
    ,anchor:'95%'
    },{
    name : 'kategorie'
    ,fieldLabel : 'Kategorie'
    ,xtype : 'combo'
    ,store : ['Neues Produkt',' Neue Produktversion','Neue Produktgeneration']
    ,forceSelection : true
    ,typeAhead : true
    ,triggerAction : 'all'
    ,style : 'padding-right:5px;'
    ,emptyText : 'Kategorie whlen'
    ,anchor:'95%'
    },{
    xtype :'textarea'
    ,name : 'beschreibung'
    ,fieldLabel : 'Beschreibung'
    ,maxLength : 1000
    ,width : 300
    ,height : 150
    ,emptyText : 'Beschreibung des Produkts'
    ,anchor:'95%'
    }, files]
    },{
    columnWidth:.2,
    layout: 'form',
    border:false,
    items: [searchButton,emptyField,browseButton]
    }]
    }]
    },{
    xtype : "panel"
    ,title : "Alleinstellungsmerkmal"
    },{
    xtype : "panel"
    ,title : "Marketing"
    },{
    xtype : "panel"
    ,title : "Prozess"
    },{
    xtype : "panel"
    ,title : "IT-Aufwnde"
    }]
    });

    var panel = new Ext.Panel({
    width: 800
    ,height: 600
    ,title: 'Idee erfassen'
    ,layout:'border'
    ,renderTo : 'content'
    ,items: [ {
    /*title: 'Workflow Aktivitten'*/
    region:'north'
    ,width: 790
    ,tbar : ['->',abortButton,'->',completeButton,'->',submitButton]
    },tabpanel, {
    title: 'Prozess Status'
    ,region:'south'
    ,width: 790
    ,height: 50
    ,items : [progressbar]
    }]
    });

    progressbar.render();
    });

  2. #2
    Sencha User
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,737
    Vote Rating
    93
      0  

    Default

    This is the GXT forum - can someone move this thread over to Ext?

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Location
    Berlin
    Posts
    4
    Vote Rating
    0
      0  

    Default

    sorry

Posting Permissions

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