Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Multi-row Editing
24/05/2014
01:48
Avatar
jroumani
New Member
Members
Forum Posts: 1
Member Since:
24/05/2014
sp_UserOfflineSmall Offline

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! 

29/05/2014
13:51
Avatar
tony
Sofia, Bulgaria
Moderator
Members

Moderators
Forum Posts: 7721
Member Since:
30/10/2007
sp_UserOfflineSmall Offline

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

selected = jQuery("#grid").jqGrid('getGridParam', 'selarrrow');

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.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
36 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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information