2012-08-16 46 views
0

所以蔭全光照的JTable,我需要添加一列,並在我的行動該列調用想要的是在另一個控制器顯示一個新視圖我誰可以打電話到HTTPGET操作方法與jQuery爲紐帶

在JTable中

TestColumn: { 
        title: 'IrRuta', 
        display: function (data) { 
var foo = '<a href="http://www.w3schools.com/">Visit W3Schools</a>'; 
return foo; 
} 

添加一列,我需要做這樣的,但它應該叫我的行動

[HttpGet] 
     public ActionResult Index(int? id) 
      { 
      //todo 
      } 

我想這樣的,但沒有奏效

var foo = '@Html.ActionLink("ruta", "Index", "Ruta") '; 
var foo = '@Url.Action("Index", "Ruta")'; 

回答

0

我這樣做在最後

IrRuta: { 
        title: 'IrRuta', 
        create: false, 
        edit: false, 
        display: function (data) { 
         return '<a href="/RutaCliente/Index?clienteId=' + data.record.ClienteId + '"><span>irRuta</span></a>'; 
        } 
相關問題