1. #1
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
    pavanbl is on a distinguished road

      0  

    Default Answered: Two Textarea boxes inside a window.

    Hi,
    Can anyone please help me.
    I`m trying for two side by side boxes in my page for placing the comment.One will show previous comments and should be disabled.other is for current users giving comments.

    I`m able to get single textarea box but couldn`t get the other one.
    Please help.

    Thanks

  2. Use an hbox layout. Here is the basic idea.

    PHP Code:
    Ext.create'Ext.window.Window', {
        
    title'test',
        
    height400,
        
    width400,
        
    layout: {
            
    type'hbox',
            
    align'stretch'
        
    },
        
    items: [
            {
                
    xtype'textarea',
                
    flex1,
                
    value'disabled area',
                
    disabledtrue
            
    },
            {
                
    xtype'textarea',
                
    value'enabled area',
                
    flex1
            
    }
        ]
    } ).
    show(); 

  3. #2
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    580
    Vote Rating
    268
    Answers
    62
    Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of Tim Toady has much to be proud of

      0  

    Default

    Use an hbox layout. Here is the basic idea.

    PHP Code:
    Ext.create'Ext.window.Window', {
        
    title'test',
        
    height400,
        
    width400,
        
    layout: {
            
    type'hbox',
            
    align'stretch'
        
    },
        
    items: [
            {
                
    xtype'textarea',
                
    flex1,
                
    value'disabled area',
                
    disabledtrue
            
    },
            {
                
    xtype'textarea',
                
    value'enabled area',
                
    flex1
            
    }
        ]
    } ).
    show(); 

  4. #3
    Sencha User
    Join Date
    Oct 2012
    Posts
    4
    Vote Rating
    0
    pavanbl is on a distinguished road

      0  

    Default

    Thanks Tim. This worked like a charm.

Thread Participants: 1

Tags for this Thread