public override object Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelper tag, DefaultTemplates defaults) { var first = ctx.RowParsingDisabled? null : base.Process(tag, defaults); if (first != null) { if ((first as RowType).RowId == null) { (first as RowType).RowId = RowType.DefaultIdBase; } if (Rows == null) { addRow(first as RowType); } else { int j = 1; foreach (var row in Rows) { row.ControllerType = row.ControllerType ?? (first as RowType).ControllerType; row.RequiredFunctionalities = row.RequiredFunctionalities ?? (first as RowType).RequiredFunctionalities; row.LocalizationType = row.LocalizationType ?? (first as RowType).LocalizationType; row.RowCssClass = row.RowCssClass ?? (first as RowType).RowCssClass; row.InputCssClass = row.InputCssClass ?? (first as RowType).InputCssClass; row.CheckboxCssClass = row.CheckboxCssClass ?? (first as RowType).CheckboxCssClass; if (row.RowId == null) { row.RowId = (first as RowType).RowId + j; } if (!row.QueryEnabled.HasValue) { row.QueryEnabled = (first as RowType).QueryEnabled; } j++; } Rows.Insert(0, first as RowType); } } uint i = 0; if (Rows != null) { foreach (var row in Rows) { row.RowInit(Rows); foreach (var col in row.Columns) { if (col.EditTemplate == null) { col.EditTemplate = defaults.EColumnTemplate; } if (col.DisplayTemplate == null) { col.DisplayTemplate = defaults.DColumnTemplate; } } row.Order = i++; } } return(Tuple.Create(Rows, Toolbars)); }
public abstract object Process(Microsoft.AspNetCore.Razor.TagHelpers.TagHelper tag, DefaultTemplates defaults);