Beispiel #1
0
        public void Add(SingleTableEditData tableData)
        {
            TkDebug.AssertArgumentNull(tableData, "tableData", this);

            fTableDatas.Add(tableData);
            tableData.Initialize();
        }
Beispiel #2
0
        protected SingleTableEditData GetTableData(string tableName)
        {
            if (ViewBag.PageData is NormalMultiEditData pageData)
            {
                SingleTableEditData tableData = pageData[tableName];
                return(tableData);
            }

            return(null);
        }
Beispiel #3
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)));
        }