Issue with pop

2 posts, 0 answers
  1. Dotneter
    Dotneter avatar
    5 posts
    Member since:
    Nov 2013

    Posted 20 Aug 2014 Link to this post

    Hi,
    In the SelectionChanged event of my calender, I put a Yes/No popup so the user can tell if he is sure to change the date or not.
    Here is the code :
     
     
    void calendar_SelectionChanged(object sender, SelectionChangedEventArgs e) 
    if (Condition)

    {
            
            MessageBoxResult result =Popup.Show("Are you sure you want to change the selected dates ");
                    
            if (result == MessageBoxResult.OK)
              {
              MyFonction();

              }
    }
    else
    {            
    MyFonction();
     
    }
           
    }

    the problem is when I select a date and I click on Cancel, the calendar does not seem to finish his "selection", when I hover it I can see the days changed to gray and I have the popup that appears again.
    Is there any way to control the process of selection ?
    For exemple if there was a method "StopSelection" I'll put it here :

    MessageBoxResult result =Popup.Show("Are you sure you want to change the selected dates ");                         if (result == MessageBoxResult.OK)​         
    {        
      MyFonction();       
       }
    StopSelection();
    I hope I was clear, please let me know if it's not the case.
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 21 Aug 2014 Link to this post

    Hello,

    Could you please give us more details on how exactly you cancel the selection of RadCalendar?

    Looking forward to your reply.

    Regards,
    Yana
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top