我的列正在顯示,它正在爲我的鏈接生成一個錨點。是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