Forum
November 2nd, 2014
A
A
A
Topic RSS
Offline
The forums are currently locked and only available for read only access


Change dynamically the msg message delete
16/10/2012
10:47
10:47

ppr
France
Member
Members
Forum Posts: 13
Member Since:
17/02/2009
17/02/2009

Hi Philippe,
Yes you can do it in the beforeShowForm event.
This is an example I use in my "users administration module":
beforeShowForm:function(form) {
ret = $("#list").getRowData($("#list").jqGrid('getGridParam','selrow'));
$("td.delmsg",form).html("Souhaitez-vous supprimer l'utilisateur<br><br><b>"+ret.matricule+': '+ret.nom+" "+ret.pren+"</b> ?");
},
ret = $("#list").getRowData($("#list").jqGrid('getGridParam','selrow'));
$("td.delmsg",form).html("Souhaitez-vous supprimer l'utilisateur<br><br><b>"+ret.matricule+': '+ret.nom+" "+ret.pren+"</b> ?");
},
The confirmation delete message box will appear now on 3 lines (with user information in bold policy) like below. If the current record was John doe user:
Souhaitez-vous supprimer l'utilisateur
1234567: DOE John ?
Best regards
Phil
Forum Timezone: Europe/Sofia
Most Users Ever Online: 715
Currently Online:
37 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