DatePicker Binding Issue.

3 posts, 0 answers
  1. shalabh
    shalabh avatar
    1 posts
    Member since:
    Mar 2011

    Posted 04 Mar 2011 Link to this post


    I have used MVVM approch to bind datepicker with entity. Below given is the code which i used to bind DatePicker:




    telerikInput:RadDatePicker x:Name="DateofReferral" TabIndex="1" SelectedValue="{Binding memberIncomingReferral.ReferralDate, Mode=TwoWay}" Culture="en-US" Height="22"/>

    By default i set "TodayDate" in this control when loading the form. now if i click on control and blank it by BackSpace and save the screen, still i get "TodayDate" in my entity.
    DatePicker doesn't set value Null or blank if i clear it by using backspace. It doesn't refect value Null back to my ViewModel. It only change value when i select any other date from Canlendar.

    please suggest.


  2. Hrushikesh
    Hrushikesh avatar
    33 posts
    Member since:
    Sep 2010

    Posted 06 Mar 2011 Link to this post


    You people can verify this in your firstlook for the silverlight datettimepicker.

    This is so much urgent. Please have a look and reply if any other way to do it.

    Thank you
  3. Kaloyan
    Kaloyan avatar
    920 posts

    Posted 07 Mar 2011 Link to this post

    Hi Hrushikesh,

    The binding is propagated through the ViewModel when lost focus appears. This means that you have to update the binding expression when you are  saving the screen.

    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top