DateInput wrapper doesn't support nullable DateTime

3 posts, 0 answers
  1. Brian
    Brian avatar
    10 posts
    Member since:
    Jan 2013

    Posted 30 Jun 2017 Link to this post

    The DateInput server side wrapper does not appear to work with nullable DateTimes. In the below code, if 'TaxDate' is a nullable DateTime when the page is rendered the control will always display 'month/day/year' (as it does when the value is null) even if the value being passed to it isn't null.

    I tried setting the .value() property on the control but it does not accept nullable DateTimes.


                                .HtmlAttributes(new { style = "width:100%;", @class = "autoSelectText" })


    From the demo page it looks as if null is a supported state, does the server side wrapper not support it?





  2. Viktor Tachev
    Viktor Tachev avatar
    1885 posts

    Posted 05 Jul 2017 Link to this post

    Hello Brian,

    I am afraid that currently the DateInput works with DateTime only. I have logged an issue and the developers should add the improvement to the component as soon as possible. You can monitor the status of the issue in the link below.

    As a token of gratitude for reporting the missing feature you will find your points updated. I apologize for any inconvenience this issue may cause you.

    Viktor Tachev
    Progress Telerik
    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.
  3. Brian
    Brian avatar
    10 posts
    Member since:
    Jan 2013

    Posted 06 Jul 2017 in reply to Viktor Tachev Link to this post

    Thanks Viktor.  I'll follow the issue on github for updates.



Back to Top