protected virtual HtmlString RenderTable(string tableName, object model) { SingleTableDetailData tableData = GetDetailTableData(tableName); RazorOutputData output = tableData?.TableDisplay; return(RenderRazorOutputData(output, model)); }
public void Add(SingleTableDetailData tableData) { TkDebug.AssertArgumentNull(tableData, "tableData", this); fTableDatas.Add(tableData); tableData.Initialize(); }
protected SingleTableDetailData GetDetailTableData(string tableName) { if (ViewBag.PageData is ITableDataIndexer indexer) { SingleTableDetailData tableData = indexer[tableName]; return(tableData); } return(null); }