using CMS.GlobalHelper; using CMS.PortalControls; public partial class CMSWebParts_Community_Groups_GroupsFilter : CMSAbstractWebPart { #region "Public properties" /// /// Gets or sets the filter button text. /// public string ButtonText { get { return ValidationHelper.GetString(GetValue("ButtonText"), ""); } set { SetValue("ButtonText", value); filterGroups.ButtonText = value; } } /// /// Gets or sets the group name link text. /// public string SortGroupNameLinkText { get { return ValidationHelper.GetString(GetValue("SortGroupNameLinkText"), ""); } set { SetValue("SortGroupNameLinkText", value); filterGroups.SortGroupNameLinkText = value; } } /// /// Gets or sets the group created link text. /// public string SortGroupCreatedLinkText { get { return ValidationHelper.GetString(GetValue("SortGroupCreatedLinkText"), ""); } set { SetValue("SortGroupCreatedLinkText", value); filterGroups.SortGroupCreatedLinkText = value; } } /// /// Gets or sets the filter button text. /// public bool DisableFilterCaching { get { return ValidationHelper.GetBoolean(GetValue("DisableFilterCaching"), false); } set { SetValue("DisableFilterCaching", value); filterGroups.DisableFilterCaching = value; } } #endregion /// /// Content loaded event handler. /// public override void OnContentLoaded() { base.OnContentLoaded(); SetupControl(); } /// /// Initializes the control properties. /// public void SetupControl() { if (StopProcessing) { // Do nothing } else { filterGroups.FilterName = ValidationHelper.GetString(GetValue("WebPartControlID"), ""); filterGroups.ButtonText = ButtonText; filterGroups.SortGroupCreatedLinkText = SortGroupCreatedLinkText; filterGroups.SortGroupNameLinkText = SortGroupNameLinkText; filterGroups.DisableFilterCaching = DisableFilterCaching; } } }