- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi All,
I have a problem with my forms with tables where I have buttons to add or remove table rows. Adding rows works great but deleting rows has a problem when deleting the first row. Example: here is a table with two rows where column 1 has the add and delete buttons and column 2 has user imput which looks something like this:
| Column 1 | Column 2 |
|---|---|
| Add and delete buttons here | row 1 |
| Add and delete buttons here | row 2 |
| Add and delete buttons here | row 3 |
If the user deletes row 2 the table looks like this which is correct:
| Column 1 | Column 2 |
|---|---|
| Add and delete buttons here | row 1 |
| Add and delete buttons here | row 3 |
If the user deletes row 1 then the table looks like this which is wrong since row 2 and 3 should be left:
| Column 1 | Column 2 |
|---|---|
| Add and delete buttons here | row 1 |
| Add and delete buttons here | row 3 |
The code is pretty straight forward:
Table3.Row2.instanceManager.addInstance(1); for the click event of the add row button
Table3.Row2.instanceManager.removeInstance(1); for the click event of the delete row button
What am I doing wrong?
Thanks in advance!
Al
Solved! Go to Solution.
Views
Replies
Total Likes