PDA

View Full Version : how to add some text in a textfield.



Jad
9 Jan 2013, 8:09 AM
Hello,

how to add some text after the it's value in a textfield.

Thanks for help

zz9pa
9 Jan 2013, 9:55 AM
Can you use getValue() and setValue() ?



var tb=this.getForm().down("#someID"); // get the widget
tb.setValue(tb.getValue()+" Hello World");

Jad
10 Jan 2013, 12:19 AM
I have found this extension http://www.sencha.com/forum/showthread.php?147962-Number-Field-with-currency-symbol-thousand-separator-amp-international-support-ExtJS4 and i adapt it.