1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
| jQuery("#listProfil").jqGrid({
url:'index.php?pagePHP=GererProfilAjaxFonction&actionPHP=loadJqGridProfil¶metrePHP=\'\'&idApplication='+idApplication+'&code='+codeProfil+'&libelle='+libelleProfil,
datatype: 'json',
height:'auto',
autowidth: true, // Largeur automatique (100%)
colNames:['Id Profil','Id Application','Code Application','Code Profil','Libellé Profil'],
colModel:[
{name:'id_profil',index:'id_profil', width:100, editable:true, hidden:true },
{name:'id_application',index:'id_application', width:100, editable:true, hidden:true },
if ( idApplication == '' ){
{name:'code_application',index:'code_application', width:100, editable:false, editoptions:{readonly:true}},
}else{
{name:'code_application',index:'code_application', width:100, editable:false, , hidden:true },
}
{name:'code_profil',index:'code_profil', width:100, editable:true, editrules:{required:true}, formoptions:{ rowpos:4, elmprefix:"*"}},
{name:'libelle_profil',index:'libelle_profil', width:300, editable:true, editrules:{required:true}, formoptions:{ rowpos:5, elmprefix:"*"}}
],
pager: '#pagerProfil',
rowNum:10,
rowList:[10,50,100],
sortname: 'code_profil',
sortorder: "asc",
viewrecords: true,
}); |
Partager