我的列正在显示,它正在为我的链接生成一个锚点。是URL格式错误的MVC获取JQGrid格式:'showlink'在MVC中工作
这里唯一的问题是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'} }
]
下面是它建立的网址: http://localhost:4618/Por/GetBoxesForPorId?id=16
我想它来建立的网址是: http://localhost:4618/Por/GetBoxesForPorId/16
可能复制http://stackoverflow.com/questions/1170510/asp-net-mvc-routing-with-jqgrid – Dan 2010-05-07 10:44:36