/// <summary> /// Gets the filter value control. /// </summary> /// <param name="configurationValues">The configuration values.</param> /// <param name="id">The identifier.</param> /// <param name="required">if set to <c>true</c> [required].</param> /// <param name="filterMode">The filter mode.</param> /// <returns></returns> public override Control FilterValueControl(Dictionary <string, ConfigurationValue> configurationValues, string id, bool required, FilterMode filterMode) { var ddlList = new RockDropDownList(); ddlList.ID = string.Format("{0}_ddlList", id); ddlList.AddCssClass("js-filter-control"); if (!required) { ddlList.Items.Add(new ListItem()); } if (ListSource.Any()) { foreach (var item in ListSource) { ListItem listItem = new ListItem(item.Value, item.Key); ddlList.Items.Add(listItem); } return(ddlList); } return(null); }