Forum
01:48
24/05/2014
Hi - I am not sure I am posting this in the right section. I have successfully implemented a jqGrid that allows the user to edit certain values, one row at a time. For instance in a column called 'Assigned to' the user can select one of three names (Joe, Bob, Sue) and then it saves directly to the database after that and reloads the grid so the user can see their changes immediately.
I know via implementing the multiselect feature the user can select multiple rows. What I am looking to do if possible is enable multiselect then have the user's edits done via the edit form apply to all the selected rows. So in my above example I could select 5 rows, open the edit form, and set Assigned To = Sue instead of having to edit each of the rows individually. My idea would be the edit form would still open/submit as normal, but instead of passing one row ID to the server, it would pass a set of IDs. Is this possible? If so, does anyone have any examples of this working?
Thanks in advance!Â
13:51
Moderators
30/10/2007
Hello,
You post this in the right place.
Yes I think this is possible.
basically you can get the selected ids while in form edit and post them in the server.
To get the selected ids you will need to use getGridParam with selarrrow parameter
In some of the editform edit events you can format these ids ind post them into the server to perform update.
You can use serializeEditData event for this purpose.
Kind Regards
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:
51 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