Hello,
I have a grid view with a cell containing either a TextBox which is ReanOnly or a ComboBox for which the user has to select a value.
The arrow button of ComboBox cell is only visible when user clicks on cell to edit it. Thus, the user does not know if he has to select or not a value
I'd like that the arrow button of ComboBox cell is always visible to indicate to user that a value has to be selected.
I've tried to set the visibility of arrow button in EditorRequired event but it has no effect.
void QualityControlsEntryGridView_EditorRequired(object sender, EditorRequiredEventArgs e)
{
if (QualityControlsEntryGridView.Columns["Result"].IsCurrent)
{
if (QualityControlsEntryGridView.CurrentRow.Cells["ReferenceValueToType"].Value.ToString() != "")
{
e.Editor = new RadTextBoxEditor();
e.EditorType = typeof(RadTextBoxEditor);
}
else
{
e.Editor = new RadDropDownListEditor();
e.EditorType = typeof(RadDropDownListEditor);
RadDropDownListEditorElement editorElement = (RadDropDownListEditorElement)((RadDropDownListEditor)e.Editor).EditorElement;
editorElement.ArrowButton.Visibility = ElementVisibility.Visible;
}
}
}