Forum
03:31
21/02/2012
My skeleton code:-
{ name:
formatoptions: {
onEdit:
},
onSuccess:
alert(
},
onError:
alert(
},
afterSave:
alert(
},
afterRestore:
alert(
},
delOptions: myDelOptions
}
}
],
multiselect:
height: $(
autowidth:
'act', index: 'act', width: 55, align: 'center', sortable: false, formatter: 'actions',function (rowid) {function (jqXHR) { "Successful Edited");return true;function (rowid, jqXHR, textStatus) {"Error:" +"\n=" + jqXHR.responseText +"\nstatus=" + jqXHR.status +"\nstatusText" + jqXHR.statusText +"\n");function (rowid) {"Successful edited")function (rowid) {"Successful edited")false,"#container").height(),true, //rownumbers: true,
cloneToTop:
rowNum: 50,
rowList: [50, 100, 150, 200],
pager: $(
gridComplete:
be =
se =
ce =
jQuery(
}
},
true,'#pager1'),function () {var ids = $("#list1").jqGrid('getDataIDs');for (var i = 0; i < ids.length; i++) {var cl = ids[i];"<input style='height:22px;width:20px;' type='button' value='E' onclick="$('#list1').editRow('" + cl + "');" />";"<input style='height:22px;width:20px;' type='button' value='S' onclick="$('#list1').saveRow('" + cl + "');" />";"<input style='height:22px;width:20px;' type='button' value='C' onclick="$('#list1').restoreRow('" + cl + "');" />";"#rowed2").jqGrid('setRowData', ids[i], { act: be + se + ce });
{ name:
'act', index: 'act', width: 55, align: 'center', sortable: false, formatter: 'actions',
formatoptions: {
onEdit:
function (rowid) {
},
onSuccess:
function (jqXHR) {
alert(
"Successful Edited");
return true;
},
onError:
function (rowid, jqXHR, textStatus) {
alert(
"Error:" +
"\n=" + jqXHR.responseText +
"\nstatus=" + jqXHR.status +
"\nstatusText" + jqXHR.statusText +
"\n");
},
afterSave:
function (rowid) {
alert(
"Successful edited")
},
afterRestore:
function (rowid) {
alert(
"Successful edited")
},
delOptions: myDelOptions
}
}
],
multiselect:
false,
height: $(
"#container").height(),
autowidth:
true, //rownumbers: true,
cloneToTop:
true,
rowNum: 50,
rowList: [50, 100, 150, 200],
pager: $(
'#pager1'),
gridComplete:
function () {
var ids = $("#list1").jqGrid('getDataIDs');
for (var i = 0; i < ids.length; i++) {
var cl = ids[i];
be =
"<input style='height:22px;width:20px;' type='button' value='E' onclick="$('#list1').editRow('" + cl + "');" />";
se =
"<input style='height:22px;width:20px;' type='button' value='S' onclick="$('#list1').saveRow('" + cl + "');" />";
ce =
"<input style='height:22px;width:20px;' type='button' value='C' onclick="$('#list1').restoreRow('" + cl + "');" />";
jQuery(
"#rowed2").jqGrid('setRowData', ids[i], { act: be + se + ce });
}
},
Please advise.
Thank you.
Regards,
Micheale
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.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66