Scheduler with Popup

SchedulePage.xaml

       
            
           
                    x:Name="schedule"
                    ScheduleView="MonthView"
                    DataSource="{Binding Schedules}"
                ShowAppointmentsInline="True">

               
                   
               

               
                   
                       
                           
                               
                                                     Text="{Binding CustomerId}"
                                                     HorizontalOptions="FillAndExpand"
                                                     BackgroundColor="{Binding Color}"
                                                     VerticalOptions="FillAndExpand"
                                                     Command="{Binding PopupCommand}"
                                                     CornerRadius="10"
                                                     />
                           
                       
                   
               

               
                   
                            SubjectMapping="CustomerId"
                            ColorMapping="Color"
                            StartTimeMapping="StartTime" 
                            EndTimeMapping="EndTime"
                            RecurrenceRuleMapping="RecurrenceRule" >
                   
               

               
                 
               
             

           
                                       ViewBoxWidth="100"
                                       AnimationType="SingleCircle" TextColor="Red"
                                       IsBusy="True"/>

           
               
                   
                                      AcceptCommand="{Binding PopupAcceptCommand}"
                                      DeclineCommand="{Binding PopupDeclineCommand}" >
               
           
       
        
        
   
   
       
   

   
       
   
    
PopupViewModel.cs

 public class PopupViewModel : INotifyPropertyChanged
    {
        bool isOpen;
        public event PropertyChangedEventHandler PropertyChanged;
        public void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }

        public ICommand PopupAcceptCommand { get; set; }
        public ICommand PopupDeclineCommand { get; set; }
        public ICommand PopupCommand { get; set; }
        public bool PopupOpen
        {
            get
            {
                return isOpen;
            }
            set
            {
                isOpen = value;
                OnPropertyChanged(nameof(PopupOpen));
            }
        }
        public PopupViewModel()
        {
            // canExecute() will be execute the PopupAccept Method
            PopupAcceptCommand = new Command(PopupAccept);
            //canExecute() will be execute the PopupDecline method
            PopupDeclineCommand = new Command(PopupDecline);
            PopupCommand = new Command(Popup);
        }

        private void Popup()
        {
            PopupOpen = true;
        }

        private void PopupAccept()
        {
            // You can write your set of codes that needs to be executed.
        }

        private void PopupDecline()
        {
            // You can write your set of codes that needs to be executed.
        }
    }
}


I given the button inside sfschedule datatemplate. Once i click the button, I would like to open the Popup and get the related data inside the popup further event. 

And when the change month in schedule i can't see the events. I can see only current month events.

Kindly please guide me.


1 Reply

SS SaiGanesh Sakthivel Syncfusion Team April 29, 2021 02:37 AM UTC

Hi MuthuKumar, 
 
Thank you for using syncfusion support. 
 
#Regarding scheduler with popup 
We would like to inform you that we need more information of usage of schedule with popup. Could you please the following details which would be helpful for us to check on it and provide you the solution at the earliest.  
 
·       Share the xaml page of schedule and popup layout. 
·       Share the issue replicated video and issue replicate procedure. 
·       Share the issue reproduce platform and device configuration. 
·       Synfusion and Xamarin Forms updated version. 
 
Regards, 
SaiGanesh Sakthivel 


Loader.
Up arrow icon