This is a migrated thread and some comments may be shown as answers.

Issue with pop

1 Answer 12 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Dotneter
Top achievements
Rank 1
Dotneter asked on 20 Aug 2014, 03:23 PM
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.

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 21 Aug 2014, 08:41 AM
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.
 
Tags
Calendar
Asked by
Dotneter
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or