Forum
13:57
14/10/2008
I have several editable columns in a row.
1) If I start editing in a column & tab to the next ones, every other cell (the even columns) fails to work correctly - the cell stays in edit mode & the value is not saved. I get two ajax calls on the odd cells & none on the even cells.
2) If I edit a cell & use the enter key to complete the edit, it saves correctly but then I get a post-back to the parent page, which forces a grid reload. The page post-back doesn't happen if I use the enter key after having used the tab key on a previous cell.
$("#gTravel").jqGrid({
caption: "Travel - Year " + year,
colNames: colNames1,
colModel: colModel1,
imgpath: imgPath,
datatype: "xml",
height: '100%',
cellEdit: true,
cellsubmit: 'remote',
url: 'HttpRequestPDS.aspx?op=load&pid='+pid+'&yr='+year+'&tab=gTravel',
cellurl: 'HttpRequestPDS.aspx?op=edit&pid='+pid+'&yr='+year+'&tab=gTravel',
beforeSubmitCell: function (id,name,v,iRow,iCol){ return {r:id, n:name, v:v}; },
});
A typical col model would be:
name:'Jan',sortable:false,width:45,align:'right',editable:true},
3) I also have a toolbar function to delete a row. If the selrow variable is set by clicking an editable cell, the row is deleted OK (I call the delRowData function if the ajax function succeeds) but it will invoke the cellEdit function on the cell below it with an undefined value.
02:26
Moderators
30/10/2007
Hello pat,
Currently I could not reproduce this.
Regards
Tony
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:
44 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