PDA

View Full Version : how to add key value pair in text field in extjs



@naresh
8 May 2013, 11:48 PM
hi
i have Ext.form.FormPanel and i want to add two text field in same aline in which i can put key in one and value in another. and add option is also their if i click add button another 2 text field open .



please suggest me how can i do this type of requirement .


thanks
naresh

slemmon
10 May 2013, 11:29 AM
Can you elaborate on the steps you've taken so far? Perhaps even share some code to show what you've done so far and where you're getting stuck?

@naresh
10 May 2013, 11:20 PM
thanks slemmon ,

i have a link http://jsbin.com/evevod/112 in this link fund is a fieldSet has two field one is combo and another is text field and a button which add same combo and text field dynamically i want to same functionality with remove button also .

but i am not able to see the code of this example .so please help with the code also .

@naresh
10 May 2013, 11:29 PM
i want to this functionality in extjs 3.4

suzuki1100nz
11 May 2013, 2:05 PM
Hi,

Go back to JSBin.com via the link you provided.

http://jsbin.com/evevod/112

If you move your mouse over the example you will see a small menu shown in the top right corner of the window "Edit in JS Bin".
Click on it and it will show you the source code which you can modify and see the results

@naresh
11 May 2013, 11:02 PM
thanks suzuki1100nz ,

but i am using Extjs 3.4 , in extjs some properties is not available for example xtype: 'fieldcontainer',itemTemplate is not default type constructor error occurs.

so please give me some sample code because i am new user of extjs .
thanks
naresh

suzuki1100nz
11 May 2013, 11:21 PM
Upgrade for ExtJS 3.4 if its feasible

@naresh
11 May 2013, 11:33 PM
thanks for advice ,

bujt my project has 1300 js file ,so any idea to upgrade the extjs version . otherwise some another way to solve the problem