We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to show inlineview in MonthView when page is loaded?

Hi,

I would like to display inlineview in MonthView when page is loaded. I set SelectedDate programatically using MVVM and raising PropertyChanged but, it doesnt display InlineView. Is it even possible?

thanks,

Emil 

Xaml:

   <schedule:SfSchedule  x:Name="Schedule" Grid.Row="1"   ShowAppointmentsInline="True" HorizontalOptions="FillAndExpand" AllowAppointmentDrag="True" AppointmentDrop="Schedule_AppointmentDrop"
                    Locale="{Binding SfScheduleLocale}" FirstDayOfWeek="2" VerticalOptions="FillAndExpand" DataSource="{Binding Schedules}" SelectedDate="{Binding SelectedDate}">
                    <schedule:SfSchedule.MonthCellStyle>
                        <schedule:MonthViewCellStyle
                    BackgroundColor="White"
                    TextColor="Black"
                    NextMonthBackgroundColor="White"
                    NextMonthTextColor="Gray"
                    PreviousMonthBackgroundColor="Silver"
                    PreviousMonthTextColor="Black"
                    TodayBackgroundColor="Red"
                    TodayTextColor="White">
                        </schedule:MonthViewCellStyle>
                    </schedule:SfSchedule.MonthCellStyle>
                 
                </schedule:SfSchedule>

In ViewModel

    SelectedDate = DateTime.Now;
                        RaisePropertyChanged("SelectedDate");

1 Reply

VR Vigneshkumar Ramasamy Syncfusion Team December 11, 2018 08:48 AM UTC

Hi Emil,  
  
Thanks for contacting Syncfusion support,  
  
We have analyzed your query “How to display month inline view on initial load” and it’s schedule’s behavior, the inline view will be displayed based on the touch interaction and it can displayed using programmatic selected date on run time, as per schedule’s behavior inline view doesn’t displayed on initial load, you can use month agenda view to display appointments on initial loading.  
  
Please revert us if you have any concern.  
  
Regards,
Vignehkumar R  


Loader.
Live Chat Icon For mobile
Up arrow icon