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
Cell Edit anomalies
28/10/2008
13:57
Avatar
pat
Member
Members
Forum Posts: 9
Member Since:
14/10/2008
sp_UserOfflineSmall Offline

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.

28/10/2008
15:55
Avatar
pat
Member
Members
Forum Posts: 9
Member Since:
14/10/2008
sp_UserOfflineSmall Offline

The answer to issue 3 is to call setSelection before deleting the row.

31/10/2008
02:26
Avatar
tony
Sofia, Bulgaria
Moderator
Members

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

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.

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information