View Full Version : New to Ext, Form that exands rows for multiple values

27 Mar 2012, 8:08 PM
originally posted in the wrong forum..

I'm trying to create a form for users that looks something like this.

Name: [text field]
Age: [text field]
Company Year Salary
[text field] [text field] [text field]

The 3 inputs for company, year and salary need to be able to add rows below so users can enter multiple values for these inputs. Each time a button is clicked, a new row should appear below with 3 new inputs for company, year and salary. In javascript I would have used a table and added a row for each time a user clicked a button. I'm looking for the same sort of functionality with Ext, but I'm not finding very good information. I have tried to do this using a Panel and just appending to the end of it without much luck. Is there a way to do this with a grid? Or are there any other suggestions that might point me in the right direction? TIA

28 Mar 2012, 6:37 AM
Add a blank record to the store and then execute startEditing on the editor grid panel.

29 Mar 2012, 12:05 PM
Thanks for the reply. I managed to get it working properly.