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_Related Related Topics sp_TopicIcon
jqgrid - predefined formatter actions - change the default action of edit selected row button
30/06/2012
20:57
Avatar
strike_noir
Member
Members
Forum Posts: 12
Member Since:
14/04/2010
sp_UserOfflineSmall Offline

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 ?

Forum Timezone: Europe/Sofia

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

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

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information