/// <summary> /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering. /// </summary> protected override void CreateChildControls() { base.CreateChildControls(); if (!Page.IsPostBack) { this.CssClass = "statementOfNeedHistory"; _primary = new SubmissionHistoryGrid(); _primary.Title = "Primary Election"; _general = new SubmissionHistoryGrid(); _general.Title = "General Election"; this.Controls.Add(_primary); this.Controls.Add(_general); } }
/// <summary> /// Called by the ASP.NET page framework to notify server controls that use composition-based implementation to create any child controls they contain in preparation for posting back or rendering. /// </summary> protected override void CreateChildControls() { base.CreateChildControls(); if (!Page.IsPostBack) { this.CssClass = "preElectionHistory"; _primary = new SubmissionHistoryGrid(); _primary.Title = "Primary Election"; _general = new SubmissionHistoryGrid(); _general.Title = "General Election"; foreach (var grid in new[] { _primary, _general }) { grid.TooltipCssClass = this.TooltipCssClass; grid.RegularTooltipCssClass = this.RegularTooltipCssClass; grid.AmendmentTooltipCssClass = this.AmendmentTooltipCssClass; grid.ResubmissionTooltipCssClass = this.ResubmissionTooltipCssClass; grid.IAmendmentTooltipCssClass = this.IAmendmentTooltipCssClass; grid.DocumentationTooltipCssClass = this.DocumentationTooltipCssClass; } this.Controls.Add(_primary); this.Controls.Add(_general); } }
/// <summary> /// Initializes a new instance of the <see cref="DisclosureStatementHistoryPanel"/> class. /// </summary> public DisclosureStatementHistoryPanel() { this.EnableViewState = false; _gridTemplate = new SubmissionHistoryGrid(); }