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
How to add custom button cart into Action column & pop up
18/02/2014
03:31
Avatar
micnie2020
Member
Members
Forum Posts: 30
Member Since:
21/02/2012
sp_UserOfflineSmall Offline

AcxImage Enlarger

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

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

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