DisplayDate not update after month change.

Hello,

I have problem with SfScheduler ViewType=Month.
My goal is to update ItemSource after user changed displayed month, but i dont know which month is displayed to User.
Property DisplayDate is always curent date in my project.


Here  is my VB code which trigger when month changed :

     Private Sub ctlMonth_ViewChanged(sender As System.Object, e As Syncfusion.UI.Xaml.Scheduler.ViewChangedEventArgs) Handles ctlMonth.ViewChanged
              Dim currentDisplayedDate = ctlMonthGraf.DisplayDate  ' This currentDisplayedDate is always today.
      End Sub

And xaml :
      <synfusion:SfScheduler Grid.Row="1"  x:Name="ctlMonthG" ViewType="Month" HeaderHeight="30">
        </
synfusion:SfScheduler >
Before posted i checked this property :
     property IsLoaded = true.
     MaximumDate is set on 2099 year, minimum date is set on 1999 year.

2 Replies 1 reply marked as answer

MM Marcin Marcinkowski November 17, 2020 11:35 AM UTC

OK, problem solved. 
Sorry, for mess.
And for next users with this problem displayed data is in ViewChangedEventArgs  like in this photo :


KA Karthikraja Arumugam Syncfusion Team November 18, 2020 02:08 PM UTC

Hi Marcin, 
 
Greetings from Syncfusion. 
 
As you have mentioned, visible date range can get from ViewChangedEventArgs. Please get in touch with us if you need any further assistance. 
 
Regards, 
Karthik Raja  


Marked as answer
Loader.
Up arrow icon