This is a migrated thread and some comments may be shown as answers.

Remove all options except RGB?

2 Answers 145 Views
ColorEditor
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 1
Veteran
Iron
Fredrik asked on 09 Mar 2021, 07:47 AM
Can I remove or lock so that the user only can use RGB?

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 11 Mar 2021, 05:50 PM

Hello Fredrik,

If you want to hide the combobox that allows you to choose between the different color modes like RGB, CMYK, HLS and HSV, you can subscribe to the Loaded event of the control and then find and hide the corresponding RadComboBox element. For example:

private void RadColorEditor_Loaded(object sender, RoutedEventArgs e)
{
	var editor = (RadColorEditor)sender;
	var comboBox = editor.FindChildByType<RadComboBox>();
	comboBox.Visibility = Visibility.Collapsed;
}

If you want to remove the alpha channel setting, you can set the AlphaSettingsVisibility property of the control.

<telerik:RadColorEditor AlphaSettingsVisibility="Collapsed" />

Can you please try those suggestions and let me know how it goes?

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Fredrik
Top achievements
Rank 1
Veteran
Iron
answered on 12 Mar 2021, 08:06 AM
It works perfectly! Thank you!
Tags
ColorEditor
Asked by
Fredrik
Top achievements
Rank 1
Veteran
Iron
Answers by
Martin Ivanov
Telerik team
Fredrik
Top achievements
Rank 1
Veteran
Iron
Share this question
or