1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    90
    Answers
    2
    Vote Rating
    2
    darkhorni is on a distinguished road

      0  

    Default Unanswered: ButtonGroup inside FieldSet

    Unanswered: ButtonGroup inside FieldSet


    deleted
    Attached Images

  2. #2
    Sencha - Community Support Team sword-it's Avatar
    Join Date
    May 2012
    Location
    Istanbul
    Posts
    1,333
    Answers
    124
    Vote Rating
    85
    sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough sword-it is a jewel in the rough

      0  

    Default


    Hi,

    Try following code:

    Code:
    Ext.create('Ext.form.Panel', {
        title: 'Simple Form with FieldSet',
        labelWidth: 75,
        url: 'save-form.php',
        frame: true,
        bodyStyle: 'padding:5px 5px 0',
        width: 550,
        renderTo: Ext.getBody(),
        layout: 'column', 
        defaults: {
            bodyPadding: 4
        },
        items: [{
            xtype:'fieldset',
            columnWidth: 0.5,
            height:150,
            title: 'Fieldset 1',
            collapsible: true,
            defaultType: 'textfield',
            defaults: {anchor: '100%'},
            layout: 'anchor',
            items :[{
                fieldLabel: 'Field 1',
                name: 'field1'
            }, {
                fieldLabel: 'Field 2',
                name: 'field2'
            },{
                xtype:'buttongroup'
                , items:[{
                    text:'Home'
                },{
                    text:'About'
                },{
                    text:'Contact'
                },{
                    text:'Active'
                }]
            }]
        }]
    });
    sword-it.com, Sencha Developer House in Turkey - Istanbul University Technopark Suite 204.

Thread Participants: 1

Tags for this Thread