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
afterSaveCell doesn't work
04/05/2009
13:24
Avatar
aleceiffel1066
Member
Members
Forum Posts: 9
Member Since:
30/04/2009
sp_UserOfflineSmall Offline

is there something special I have to do to get afterSaveCell to work? my grid is local data array, but I cannot even get an alert to work...

jQuery("#jqgQualityStatus").jqGrid({
datatype: "local",
height: 300,
colNames: ['id', 'Product name', 'Parent product name', '', 'Status - select to override', 'Detail'],
colModel: [
{ name: 'id', index: 'id', width: 1, hidden: true, key: true },
{ name: 'product', index: 'product', width: 300, align: "left" },
{ name: 'parent', index: 'parent', width: 300, align: "left" },
{ name: 'indicator', index: 'indicator', width: 30, align: "right", formatter: priorityFormatter },
{ name: 'status', index: 'status', width: 200, editable: true, edittype: "select", editoptions: { value: "0:OK;4:Critical;3:High;2:Medium;1:Low"} },
{ name: 'detail', index: 'detail', width: 100, align: "center", formatter: 'link' }
],
imgpath: 'styles/themes/steel/images',
shrinkToFit: true,
forceFit: true,
onSelectRow: function(id) {
if (id && id !== lastsel2) {
jQuery('#jqgQualityStatus').restoreRow(lastsel2);
jQuery('#jqgQualityStatus').editRow(id, true);
lastsel2 = id;

// [::TODO::] add logging of quality status override
}
},
afterSaveCell : function (rowid,name,val,iRow,iCol){
var g = jQuery("#jqgQualityStatus").getCell(rowid, 'product');
},
beforeSaveCell: function(rowid, celname, value, iRow, iCol) { return "new value"; },
saveRow: function(row, priorityFormatter) {
alert(row);
},
editurl: "clientArray"
});

any ideas or help would be greatly appreciated...

04/05/2009
13:57
Avatar
aleceiffel1066
Member
Members
Forum Posts: 9
Member Since:
30/04/2009
sp_UserOfflineSmall Offline

i think i found it, my bad for the spurious topic.

cellEdit: true

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
65 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