下面代码只向控制器发送一个参数(id = o.nopCategoryID),如何发送另一个参数呢?
查看
@(Html.Telerik().Grid(Model.Mappings)
.Name("Grid")
.Scrollable(c => c.Height("200px"))
.Columns(columns =>
{
columns.Bound(o => o.ClockCategoryid).Hidden(true);
columns.Bound(o => o.nopCategoryID).Hidden(true);
columns.Bound(o => o.nopCategory).Width(100).Title("Category");
columns.Bound(e => e.ClockCategory).Width(200).Title("Mapped To").Template(t => t.ClockCategory.Replace(",", "<br />"));
columns.Bound(o => o.nopCategoryID)
.Width(50)
.Centered()
.Template(o => Html.ActionLink("Edit", "EditProduct", new { id = o.nopCategoryID, category = o.nopCategory }))
.Title("Edit");
columns.Bound(o => o.nopCategoryID)
.Width(50)
.Centered()
.Template(o => Html.ActionLink("Delete", "DeleteMapping", new { id = o.ClockCategoryid }))
.Title("Delete");
})
)
控制器:
public ActionResult EditProduct(int id,string category)
{
return Configure(id, 0);
}