/// <summary> /// Decorate a ActionEntityPickerControl to select the current entity /// </summary> /// <param name="actionPicker">The action picker.</param> public void BindActionPicker(ActionEntityPickerControl actionPicker) { PickerEntity pickerEntity = new PickerEntity { Key = _actionEntity.CurrentKey, DisplayText = _actionEntity.Value, IsResolved = false }; ArrayList list = new ArrayList { pickerEntity }; actionPicker.UpdateEntities(list); }
protected override Control CreateControl() { _control = new ActionEntityPickerControl { ID = ("c" + _field.Name), MultiSelect = false }; if (_field.Required) { _control.AllowEmpty = false; } return(_control); }