PDA

View Full Version : Ext Text area



YASHICA GAUTAM
3 Jun 2012, 10:05 PM
Hi i am trying to use text area within grid ,however textarea is always disabled.
the code is:



id: 'reason',
header: "Reason <font color='red'>* (Max :1000 characters)</font>",
dataIndex: 'reason',
width: 200,
autoHeight: true,
anchor : '100%',
grow : true,
editor : new fm.TextArea({allowBlank: true })


Please help.

hasimseo
4 Jun 2012, 1:31 AM
hi use this...
it works properly


columns[{id: 'reason',header:'Reason <font color="red">* (Max :1000 characters)</font>',
dataIndex: 'reason',
width: 200,
autoHeight: true,
anchor : '100%',
grow : true,
editor: 'textfield',
allowblank:false
}
],
plugins: [
Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 1
})
]

YASHICA GAUTAM
4 Jun 2012, 2:04 AM
Hey thanks but i already m using all neccessary part of code u mentioned.i have defined text area in column model only.Still its not working

hasimseo
4 Jun 2012, 2:42 AM
i ve tested it on my own grid and it work . may be some other err.
can you share full code ??

YASHICA GAUTAM
4 Jun 2012, 3:43 AM
Ok, u r rite....i again went through my code.The thng is whenever i tried to hide/show my grid using document.getElementByID().style.display or i put it in table and show/hide table,the text area stops working,else it runs smoothly.

I am trying to solve this,if u have any solution please tell.

YASHICA GAUTAM
4 Jun 2012, 3:51 AM
hey,
I found that if i hide div containing ext js code using Style.display ,text area wont work,
But if i use style.visibility it works fine.

Thanks for helping.