Forum
20:57
14/04/2010
Can we change the default action of the "edit selected row" button?
Here is my code for the grid
jQuery("#detFlex62_1").jqGrid({
url: root + mod + '/detaillistview',
datatype: "local",
colNames:[' ', '<?=lang("users_company_code")?>', '<?=lang("users_company_name")?>', ' ', ' '], colModel:[ {name:'myac', width:50, fixed:true, sortable:false, resize:false, formatter:'actions', formatoptions:{keys:true,delOptions: {reloadAfterSubmit:false},editOptions: {reloadAfterSubmit:false}}}, {name:'company_code',index:'company_code', width:100}, {name:'company_name',index:'company_name', width:100}, {name:'company_id',index:'company_id', width:100,hidden:true}, {name:'company_access_id',index:'company_access_id', width:100,hidden:true} ], width: $('.body').width()-40, height: 120, pager: '#pagerFlex62_1', sortname: 'user_id', sortorder: "desc", editurl: root + mod + '/detailpost', caption:"<?=lang("users_title")?>", onSelectRow: function(id){ activedf = "#detFlex62_1"; } });
I know I should put something in the editOptions part of the code.
Right now I only put reloadAfterSubmit:false. What is the option to execute our own custom function ?
Most Users Ever Online: 715
Currently Online:
36 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