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
afterEditRow - not cell
13/05/2010
19:56
Avatar
threepwood
New Member
Members
Forum Posts: 1
Member Since:
13/05/2010
sp_UserOfflineSmall Offline

Hello,

I have 2 quick questions.

1: i use inline editing, so when you click on a cell it will highlight the entire row and turn it into input fields, eg :
onSelectRow: function(id){
if(id && id!==lastsel){
jQuery('#rowed3').jqGrid('restoreRow',lastsel);
jQuery('#rowed3').jqGrid('editRow',id,true);
lastsel=id;
}
},
But then, after you have edited the cell and press enter on keyboard, it will save it.
But i have set editurl and url to "clientSide" since i wan tto write my own logic for saving it to a server, so i need an event to fire to let me know i have to get the new data and save it my own way.
But there does not seem to be one? in the wiki i can only find events such as beforeEditCell, afterSaveCell, only CELL. and these does not even fire either in my case, i have tested all of them. So how do i detect when the user presses enter and the data is saved ?

2: i'd like to make it so you dont actually have to press enter on the keyboard in order to save the new data, i would like it so if you select another row , or just deselects the current one, it automatically saves. how do i accomplish this? i guess i need an event for when a row looses selection, and a way to get the changed information. And then, what function do i call to save it? i guess the same one as keyboard-enter calls, but which is that?

Help greatly appreciated

17/05/2010
21:31
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

Hello,

First you mix cell edit with row edit - they are diffrent. If you look carfully into the docs you will notice this. Every event is related to certain module.

Please look carfully here:

http://www.trirand.com/jqgridw.....ne_editing

Especially here:

http://www.trirand.com/jqgridw.....ng#saverow

and aftersavefunc

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