SelectedDateTimeChanged event issue

2 posts, 0 answers
  1. shay keren
    shay keren avatar
    14 posts
    Member since:
    May 2006

    Posted 29 Dec 2009 Link to this post

    hi
    i would like to rollback the datetime user selection under the 'SelectedStartDateTimeChanged' event.
    it seems that the SelectedDateTime property is updated correctly but the time control (view) is not.

    scenario
    the current dateTime selection is  29/12/2009 14:00
    user try to change the datetime to  29/12/2009 15:00
    then i would like from the time control to show 14:00 and not 15:00

    source code:
     private void OnSelectedStartDateTimeChanged(object sender, RoutedPropertyChangedEventArgs<DateTime?> e)
            {
                try
                {
                    UnSubscribeToSelectedStartDateTimeChanged();
                    if (e.OldValue == null) //first time loading
                        return;

                     startDateTime.SelectedDateTime = (DateTime) e.OldValue;
                  
                }
                finally
                {
                    SubscribeToSelectedStartDateTimeChanged();
                }
            }
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 30 Dec 2009 Link to this post

    Hi shay keren,

    Can you specify the exact type of control you are using as the RadTimePicker is not exposing such property as SelectedDateTime and 'SelectedStartDateTimeChanged' event.

    Greetings,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top