Forum
22:40
26/11/2012
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.
16:01
Moderators
30/10/2007
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.
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66