Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        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));
        }
Exemplo n.º 3
0
        public MvcHtmlString GetFooterValue(IEnumerable <TModel> rows, ControllerContext context, TextWriter textWriter)
        {
            var htmlHelper = HtmlHelperMock.GetHelper(rows, context, textWriter);

            return(MvcHtmlString.Create(FooterFunc.ExecuteIfNotNull(htmlHelper, rows)));
        }