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

Selecting Color closes popup where I placed RadColorPicker.

1 Answer 125 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Jakub
Top achievements
Rank 1
Iron
Jakub asked on 01 Jun 2020, 10:34 AM

Hi,

I have my own popup (class that inherits from System.Windows.Controls.Primivites.Popup) that contains textbox, close button and a RadColorPicker.

The problem is when DropDownContent of RadColorPicker shows, I select color and DropDownContent hides, also with my Popup. It looks like MouseDown event is responsible for color selection, it hides DropDownContent and then MouseUp event hides my popup because mouse is actually out of Popup bounds.

 

Is there any possibility to not pass this event higher when color is selected and just simply close DropDownContent without any further event handling or something?

1 Answer, 1 is accepted

Sort by
0
Ivan Petrov
Telerik team
answered on 03 Jun 2020, 03:07 PM

Hello Jakub,

You can set the StaysOpen property of your custom popup class to true. This will keep it open while the user works with the color picker's own popup. You will have to make sure afterward that you close the popup when its purpose is fulfilled.

I hope this is useful. Should you have further questions, I would be glad to assist.

Regards,
Ivan Petrov
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
ColorPicker
Asked by
Jakub
Top achievements
Rank 1
Iron
Answers by
Ivan Petrov
Telerik team
Share this question
or