Default Date for RadDateTimePicker

6 posts, 0 answers
  1. Sameer
    Sameer avatar
    22 posts
    Member since:
    Sep 2011

    Posted 15 Mar 2012 Link to this post

    Hi,

    I have a RadDateTimePicker in my Xaml which is bound with nullable DateTime field in my Model Entity.
    If my Entity field is null, I want to display a computed date. I tried using TargetNullvalue in my Binding expression however, it doesn't take dependency property.
    So I was just wondering is there a solution for this in your rad control?

    Thank you for your help

    Sameer
  2. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 21 Mar 2012 Link to this post

    Hello,

    This functionality cannot be achieved with the current version of RadDateTimePicker. We will consider implementing it for the upcoming 2012 Q2 release.

    Greetings,
    Ivo
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Myles
    Myles avatar
    18 posts
    Member since:
    Mar 2012

    Posted 11 May 2012 Link to this post

    Can you confirm whether this functionality has been included in the 2012 Q2 release?
  5. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 16 May 2012 Link to this post

    Hi Myles,

    This functionality will not make it trough for the 2012 Q2 release, because there were other tasks with higher priority. However we will consider this when we plan the tasks for the next release.

    Regards,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. Myles
    Myles avatar
    13 posts
    Member since:
    May 2012

    Posted 05 Oct 2012 Link to this post

    What about now?  Will it make the next release?  This is really important to us.
  7. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 10 Oct 2012 Link to this post

    Hi Myles,

    We investigated this and found that major breaking changes will be required in order to implement this functionality. We also found an easy workaround that allows you to achieve the mentioned functionality.

    You can handle the selection changed event, check whether there is no new selected date and set the default or computed date you want. Note that this will result in updating your ViewModel.

    All the best,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner