Forum


04:23

23/01/2010

I would also like this.
I need to be able to cancel a cell edit event... if one cell is being editted, then another is clicked, I have to save the first one and abort the second one... I can't let the 2nd cell go into edit mode while the first one is still saving, since the the 2nd cell may be changed in the 1st cell's save event.
So, I just need to be able to return false in one of the cell edit events that happen when a cell is clicked on.
08:50

04/02/2010

Hi,
There is a workaround for what you want.
Use the beforeCellEdit method to accomplish the requirement.
Implement this inside beforeCellEdit event of your jQgrid
Step1: Declare two variables, lastiRow & lastiCol
Step 2: use the saveCell method and save the old cell:
jQuery("#gridId").saveCell(lastiRow, lastiCol);
Step2: assign the current iRow and iCol to lastiRow and lastICol
lastiCol=iCol; lastiRow=iRow;
So, whenever a cell is edited, we are saving the previously edited cell.
Hope this helps
Thanks,
Venkat
Most Users Ever Online: 715
Currently Online:
52 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