/// <summary> /// Creates the control(s) necessary for prompting user for a new value /// </summary> /// <param name="configurationValues">The configuration values.</param> /// <param name="id"></param> /// <returns> /// The control /// </returns> public override Control EditControl( Dictionary<string, ConfigurationValue> configurationValues, string id ) { var editControl = new RockDropDownList { ID = id }; editControl.Items.Add( new ListItem() ); var definedTypes = new DefinedTypeService( new RockContext() ).Queryable().OrderBy( d => d.Name ); if ( definedTypes.Any() ) { foreach ( var definedType in definedTypes ) { editControl.Items.Add( new ListItem( definedType.Name, definedType.Guid.ToString().ToUpper() ) ); } return editControl; } return null; }