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
Edit all rows for a specific column(s)?
13/10/2013
22:40
Avatar
SammyD
Member
Members
Forum Posts: 9
Member Since:
26/11/2012
sp_UserOfflineSmall Offline

Hi,

I have a relatively small grid (20 or so rows).

What I want to do, is click a button, and enter "edit" mode. However, rather than editing on a row by row basis, I would like to edit all the values for a column (basically turn the entire column into a column of <input type=text> tags). This would allow the user to change all the values, individually, for each row, in a quick manner.

Is something like this possible?

Here is the possible scenario. The column allows the user to enter 1-5, to rate each row. Rather than having to edit each row, one at a time (and click save for each row), they could enter edit mode, and then the "Rate" column would turn into textboxes. Then, the user can just go down each row, enter a value (which may be different for each row), in each textbox, and click save.

14/10/2013
16:01
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

Unfortunatley this is not build in.

You must write a custom code to do this.

Here is the scenario.

Make the field (column) editable describing it in colModel.

On click a button

1. Get the all ids in the current loaded data using getDataIDs method.

2. Loot throught the array and use inline editRow with the id of the row.

3. The user will enter the value and then pressing enter will save the row.

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:
19 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