Mes colonnes apparaissent, il génère une ancre pour mon lien. Le seul problème est l'URL est mal formé pour MVCObtenir le formateur JQGrid: 'showlink' pour travailler dans MVC
Voici le colModel:
colModel: [
{ name: 'RegName', index: 'RegName', label: 'Region Name',width:90, align: 'center' },
{ name: 'AccessNbr', index: 'AccessNbr', label: 'Access Number',width:80, align: 'center', formatter: 'showlink', formatoptions: {baseLinkUrl: '', showAction: 'GetBoxesForPorId', addParam: ''} },
{ name: 'TransmitedDt', index: 'TransmitedDt', label: 'TransmitedDt', align: 'center' },
{ name: 'BoxCount', index: 'BoxCount', label: 'Box Count', align: 'center' },
{ name: 'PorId', hidden:false ,index: 'PorId', label: 'Por ID', key:true ,formatter:'link', formatoptions: {target:'_new'} }
]
Voici l'URL qu'il construit: http://localhost:4618/Por/GetBoxesForPorId?id=16
L'URL que je veux construire est: http://localhost:4618/Por/GetBoxesForPorId/16
possible dupliquer de http://stackoverflow.com/questions/1170510/asp-net-mvc-routing-with-jqgrid – Dan