Forum
I got this question answered at http://stackoverflow.com/quest.....35#4138935 and now posting it here, it looks like a bug. Here's a short description.
I can reproduce this on jqGrid example, in New in Version 3.7, Add/edit/delete on local data:
- Click any row and edit it (open form)
- Close form
- Select any other row and click edit – form shows incorrect values (from the row that was opened first)
- Click Add new row button in toolbar – form shows same values – which is very convenient, usually new rows are "almost" same – if only it would add new row, not update the existing one!
Of course in live demo Submit doesn't do that (it doesn't seem to work at all) but except for this the symptoms are same that I experience in my project – when I click Submit, the row that was initially open is always overwritten, even in case of Add New Row.
Also <> buttons do not change data in form, though they change selected row – but from what I remember previously it used to update form values also to match selected row.
Also, I've just now (with latest Chrome 9.0.x), not sure why, but if I quickly open form to edit row, then first > navigation button changes the form values to match newly selected row (shifted from id 8 to id 7 and I see this change in edit form) - but only once, after that it does not change form values, only selected row.
18:58
Moderators
30/10/2007
Hello,
Sorry, but I can not reproduce this.
As you can see from the name this is only demo and does not cover all user requirments.
Of course if you add record locally it is a good idea to make your own counter when adding grid row.
Kind Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
27 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66