J'ai une liste de produits sur mon site. Je dessine avec jqGrid. J'ai aussi un formulaire, pour créer un nouveau produit, ou mettre à jour un existant. Est-il possible de mettre en jqGrid, que lorsque j'appuie sur le bouton 'modifier' dans la grille, il me redirige vers la page commeProblème de framework Jqgrid et Zend
'monsite/produit/modifier/id/{id}
Voici mon script de grille:
$(document).ready(function() {
$("#list").jqGrid({
url:'product/getjson',
datatype: "json",
colNames:['id','Name', 'description', 'Publication date','Picture'],
colModel:[
{name:'id',index:'id', width:55},
{name:'name',index:'name', width:90},
{name:'description',index:'description', width:200},
{name:'pubDate',index:'pubDate', width:200, align:"right"},
{name:'picPath',index:'picPath', width:200, align:"right"},
],
rowNum:10,
rowList:[10,20,30],
pager: '#pager2',
sortname: 'id',
viewrecords: true,
sortorder: "desc", caption: 'Products'});
$("#list").jqGrid('navGrid','#pager2',{edit:true,add:true,del:true});
})