public MvcHtmlString JQGrid(Trirand.Web.Mvc.JQGrid grid, string id) { JQGridRenderer renderer = new JQGridRenderer(); grid.ID = id; return(MvcHtmlString.Create(renderer.RenderHtml(grid))); }
public void SetUpGrid(Trirand.Web.Mvc.JQGrid ordersGrid) { // Customize/change some of the default settings for this model // ID is a mandatory field. Must by unique if you have several grids on one page. ordersGrid.ID = "EOLGrid"; // Setting the DataUrl to an action (method) in the controller is required. // This action will return the data needed by the grid ordersGrid.DataUrl = Url.Action("DataRequested"); ordersGrid.EditUrl = Url.Action("EditRows"); }