Le mie colonne vengono visualizzate, sta generando un'ancora per il mio collegamento. L'unico problema è l'URL è mal formato per MVCOttenere formattatore JQGrid: 'showlink' per funzionare in MVC
Ecco l'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'} }
]
Qui è l'URL che si costruisce: http://localhost:4618/Por/GetBoxesForPorId?id=16
L'url che voglio per costruire è: http://localhost:4618/Por/GetBoxesForPorId/16
possibile duplicare http://stackoverflow.com/questions/1170510/asp-net-mvc-routing-with-jqgrid – Dan