I wish to programmatically select the "Basic" Colors Tab when the colorbox is opened, without hidding the other tabs
Thanks in advance
2 Answers, 1 is accepted
0
Nadya | Tech Support Engineer
Telerik team
answered on 21 Jun 2019, 02:07 PM
Hello, Pierre-Jean,
To achieve this result, you should first get access to RadColorDialogForm which represents a dialog containing a color picker. Note that the RadColorDialogForm uses a UserControl for the color selector. It is of type RadColorSelector and allows the access to ActiveMode property so you can set the desired color mode.
Please refer to the following code snippet which demonstrates how to access the RadColorDialogForm and show the "Basic" color mode when the color box is opened.
public Form1()
{
InitializeComponent();
RadColorDialogForm colorForm = this.radColorBox1.ColorBoxElement.ColorDialog.ColorDialogForm as RadColorDialogForm;
I hope this information helps. Should you have any other questions, I will be glad to help.
Regards,
Nadya
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.