View Full Version : Two Textarea boxes inside a window.

3 Oct 2012, 10:51 AM
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.


Tim Toady
3 Oct 2012, 12:54 PM
Use an hbox layout. Here is the basic idea.

Ext.create( 'Ext.window.Window', {
title: 'test',
height: 400,
width: 400,
layout: {
type: 'hbox',
align: 'stretch'
items: [
xtype: 'textarea',
flex: 1,
value: 'disabled area',
disabled: true
xtype: 'textarea',
value: 'enabled area',
flex: 1
} ).show();

18 Nov 2012, 1:33 AM
Thanks Tim. This worked like a charm.