internal string Build(Configuration configuration) { var visibility = Utilities.EvalExpression(_visibility); if (visibility == ColumnVisibility.None) { return string.Empty; } var td = new TagBuilder("td"); if (_colSpan > 1) { td.Attributes.Add("colspan", _colSpan.ToString()); } var format = Utilities.EvalExpression(_format, null); td.InnerHtml = Utilities.GetText(format, configuration.GetWhiteSpace()); if (!string.IsNullOrWhiteSpace(_class)) { td.AddCssClass(_class); } Utilities.SetAttributes(td, _attributes); if (visibility == ColumnVisibility.Hidden) { td.Attributes.Add("style", "display: none;"); } return td.ToString(); }
internal string Build(Configuration configuration, Uri url) { return Pagination.GetDefaultPagination(_pageIndex, _totalCount, _pageSize, _paginationSizing, _paginationAligment, _numericLinksCount, _paginationInfo, _attributes, configuration.GetBootstrapVersion(), _onPaginate, _href, url, _removedParameters, _addedParameters).ToString(); }