1
我使用MVC3 Grid來顯示事件。OnMouse事件工具提示@ Html.Grid
我需要的是以某種方式集成在鼠標事件的「名稱」顯示該項目的「說明」。
我該如何執行?感謝您的任何線索!
@{
var grid = new WebGrid(source: Model.Events,
defaultSort: "Name",
rowsPerPage: 20);
}
@if (Model != null)
{
@grid.GetHtml(
tableStyle: "grid",
headerStyle: "head",
alternatingRowStyle: "alt",
rowStyle: "row",
selectedRowStyle: "selected-row",
columns: grid.Columns(
grid.Column("Name", "Event", style: "column"),
grid.Column(format: (item) => Html.ActionLink("Edit", "Edit", new { id = item.ID }), style: "column-action")
))
}
@Ohgodwhy的問題是,我不知道如何下手:( – 2012-04-14 21:47:15