How to reproduce: check the attached video Workaround: select a color from a different tab or use the color picker
public
RadForm1()
{
InitializeComponent();
this
.radGridView1.ConditionalFormattingFormShown += radGridView1_ConditionalFormattingFormShown;
}
private
void
radGridView1_ConditionalFormattingFormShown(
object
sender, EventArgs e)
{
ConditionalFormattingForm form = sender
as
ConditionalFormattingForm;
if
(form !=
null
)
{
RadPropertyGrid propertyGrid = form.Controls[
"radPropertyGridProperties"
]
as
RadPropertyGrid;
propertyGrid.EditorInitialized -= propertyGrid_EditorInitialized;
propertyGrid.EditorInitialized += propertyGrid_EditorInitialized;
}
}
private
void
propertyGrid_EditorInitialized(
object
sender, PropertyGridItemEditorInitializedEventArgs e)
{
PropertyGridColorEditor colorEditor = e.Editor
as
PropertyGridColorEditor;
if
(colorEditor !=
null
)
{
RadColorBoxElement element = colorEditor.EditorElement
as
RadColorBoxElement;
RadColorDialogForm colorForm = element.ColorDialog.ColorDialogForm
as
RadColorDialogForm;
RadColorSelector selector = colorForm.RadColorSelector
as
RadColorSelector;
selector.ShowProfessionalColors =
false
;
}
}
Hi - Are there plans to fix this issue? Is it possible to remove the professional color tab such that users aren't picking from unavailable options?
Clfiton