RadTimePicker Design-Time error when clearing Value property

2 posts, 0 answers
  1. John
    John avatar
    9 posts
    Member since:
    Sep 2011

    Posted 03 May 2012 Link to this post

    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.

  2. Peter
    Admin
    Peter avatar
    1148 posts

    Posted 08 May 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top