Esempio n. 1
0
        public object GetCellValue(IGridColumn <TModel> column, TModel item)
        {
            if (column.CellCondition != null && !column.CellCondition(item))
            {
                return(null);
            }

            var value = column.ColumnValueRender(item, HtmlHelper);

            if (column.Encode && value != null && !(value is IHtmlString))
            {
                value = HttpUtility.HtmlEncode(value.ToString());
            }

            return(value);
        }