Exemple #1
0
        protected virtual HtmlString RenderTable(string tableName, object model)
        {
            SingleTableDetailData tableData = GetDetailTableData(tableName);
            RazorOutputData       output    = tableData?.TableDisplay;

            return(RenderRazorOutputData(output, model));
        }
Exemple #2
0
        protected virtual HtmlString RenderRow(string tableName, IFieldValueProvider provider)
        {
            SingleTableEditData tableData = GetTableData(tableName);

            if (tableData == null)
            {
                return(HtmlString.Empty);
            }
            RazorOutputData output = tableData.RowDisplay;

            if (output == null)
            {
                return(HtmlString.Empty);
            }
            return(output.Execute(this, new ProviderModelData(provider)));
        }
        protected virtual HtmlString RenderRow(IFieldValueProvider provider)
        {
            NormalListData pageData = ViewBag.PageData as NormalListData;

            if (pageData == null)
            {
                return(HtmlString.Empty);
            }

            RazorOutputData output = pageData.RowDisplay;

            if (output == null)
            {
                return(HtmlString.Empty);
            }
            return(output.Execute(this, new ProviderModelData(provider)));
        }