/// <summary> /// 渲染左侧占位列 /// </summary> private void RenderBeforeColumn( TextWriter writer, HtmlEncoder encoder ) { if ( _config.Contains( UiConst.BeforeColspan ) == false ) return; var builder = new GridColumnBuilder(); builder.AddColspan( _config, UiConst.BeforeColspan ); builder.WriteTo( writer, encoder ); }
/// <summary> /// 渲染控件 /// </summary> private void RenderControl(TextWriter writer, HtmlEncoder encoder) { if (_config.Contains(UiConst.Colspan) == false) { Builder.WriteTo(writer, encoder); return; } var columnBuilder = new GridColumnBuilder(); columnBuilder.AddColspan(_config, UiConst.Colspan); columnBuilder.SetContent(Builder); columnBuilder.WriteTo(writer, encoder); }