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

RadTimePicker Design-Time error when clearing Value property

1 Answer 144 Views
Calendar, DateTimePicker, TimePicker and Clock
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 03 May 2012, 10:31 PM
Is there an example of a binding a RadTimePicker or RadDateTimePicker to a typed dataset where a DateTime value has it's 'Allow Null' set to true and the default value of(<DBNULL>). I have the NullText set to something like "N/A". The binding at runtime, at least in my experience, always gets the control's Value instead of the datasource's Null value and displays the date/time the control was droppped on to the form.

Another problem is that when I try to clear the RadTimePicker.Value property during design-time and I get 'Object reference not set to an instance' and numerous other errors popping up from VS2010. I can no longer enter a date/time to resolve this problem, it's disabled. I understand this is a 'DateTime' object that cannot be null, but the workaround is removing the control and adding a new one, rebinding etc.

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 08 May 2012, 02:59 PM
Hello Jonh,

Thank you for contacting Telerik support.

Please, find the attached project which demonstrates how to bind RadDateTimePicker. For more information about RadDateTimePicker simple binding please take a look at this help article.

In regards to the issue with RadTimePicker in design time, we are already aware of it and it is logged in our internal issue tracking system. We will provide fix for it in our next release, which is due in June.

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

Greetings,
Peter
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
Calendar, DateTimePicker, TimePicker and Clock
Asked by
John
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or