i added news action in grid, i want to click on forward to reporter, show that rows value in popup on same window.
@model IEnumerable< News4MediaSite.News4MediaRepository.tbl_News>
@{
ViewBag.Title = "News";
WebGrid grid = new WebGrid(Model, rowsPerPage: 10);
}
<h2>News</h2>
@{
int Count = Model.Count();
if (Count > 0)
{
@grid.GetHtml(tableStyle: "table-design table table-bordered table-hover dataTable", fillEmptyRows: false,
columns: new[]
{
grid.Column(columnName:"Description", header:"Description"),
grid.Column(columnName:"Date", header:"Date"),
//grid.Column("Status","Status", format:(item)=> (int)item.Status == 0? "Active" :"InActive"),
grid.Column(header: "Action", style:"edit-design", format: (item) =>
new HtmlString(Html.ActionLink("Publish", "NewsPublish",new{ID = item.ID}).ToString()+" "+
Html.ActionLink("Forward to Reporter","NewsForward", new {ID =item.ID,}, new {@class="delete-btn"}).ToString()))})
}
}