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

RadTimePicker Disabled State

4 Answers 106 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 04 Feb 2017, 11:31 PM

Hello,

I'm using UI for WinForms R1 2017 and have observed a problem with the drawing of RadTimePicker when in a disabled state (Enabled = false).

Please see the attached picture. Notice how the RadDateTimePicker control (on the left) has the expected disabled appearance. However, the RadTimePicker control (on the right) does not. Specifically, part of the RadTimePicker editor background is still drawn in a light color when the control is disabled.

Please let me know if there's a workaround for this, and thanks.

Regards,

Mark R.

4 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 06 Feb 2017, 11:29 AM
Hello Mark,

This is a known issue which is already logged in our Feedback PortalYou can track its progress, subscribe for status changes and add your comment to it here.

To work around this, set the back color of the RadTimeMaskedEditBoxElement for the disabled state in Visual Style Builder (see attached image). The following articles shows how you can edit the predefined themes:
1. Using custom themes
2. Working With Repository Items
3. Loading Predefined Themes 

I hope this will be useful. Let me know if you have additional questions.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Mark
Top achievements
Rank 1
answered on 06 Feb 2017, 02:56 PM

Hello Dimitar,

Thanks for the quick and helpful reply to my inquiry.

Is there a way to set the background color for the disabled state programmatically?

Regards,

Mark R.

0
Accepted
Dimitar
Telerik team
answered on 07 Feb 2017, 08:53 AM
Hi Mark,

To set this in code you should use the SetThemeValueOverride method:
radTimePicker1.TimePickerElement.MaskedEditBox.SetThemeValueOverride(RadItem.BackColorProperty, Color.FromArgb(221, 231, 242), "Disabled");

Do not hesitate to contact us if you have other questions.

Regards,
Dimitar
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Mark
Top achievements
Rank 1
answered on 07 Feb 2017, 03:17 PM

Thanks, Dimitar. That worked perfectly. :-)

Regards,

Mark R.

Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
Mark
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Mark
Top achievements
Rank 1
Share this question
or