public override MvcHtmlString GetCellValue(TModel[] model, int rowIndex, ControllerContext context, TextWriter textWriter) { var helper = HtmlHelperMock.GetHelper(model, context, textWriter); return(helper.ActionLink(_linkText, _action, _controller, new RouteValueDictionary(_routeValues(model[rowIndex])), _htmlAttributes)); }
public override MvcHtmlString GetCellValue(TModel[] model, int rowIndex, ControllerContext context, TextWriter textWriter) { var mock = HtmlHelperMock.GetHelper(model, context, textWriter); return(GetCellValueCore(model, rowIndex, GetCellObject(model, rowIndex), mock)); }
public MvcHtmlString GetFooterValue(IEnumerable <TModel> rows, ControllerContext context, TextWriter textWriter) { var htmlHelper = HtmlHelperMock.GetHelper(rows, context, textWriter); return(MvcHtmlString.Create(FooterFunc.ExecuteIfNotNull(htmlHelper, rows))); }