Issue with SpecialTimeRegions not appearing after clear

Hi,

I am dynamically switching between resources and appointment, so every time I'm switching collections I need to clear SpecialTimeRegions and add new one

The issue is that first one appears correctly, but after clearing and adding again no SpecialTimeRegions appears



8 Replies 1 reply marked as answer

SS SaiGanesh Sakthivel Syncfusion Team February 17, 2022 02:14 PM UTC

Hi Dmitri,


#Regarding Dynamically changing the SpecialTimeRegions is not updating
 
Currently, we are validating the reported scenario from our end. We will update you on the further details on February 21, 2022. We appreciate the patience until then. 
 
Regards,
SaiGanesh Sakthivel
 



SS SaiGanesh Sakthivel Syncfusion Team February 21, 2022 12:06 PM UTC

Hi Dmitri,


#Regarding Dynamically changing the SpecialTimeRegions is not updating
 
We have fixed the reported issue from our end and it is currently in the testing phase. We will include the issue fix in our weekly nuget which is expected to roll out on March 1, 2022. We appreciate the patience until then. 
 
Regards,
SaiGanesh Sakthivel
 



SS SaiGanesh Sakthivel Syncfusion Team March 1, 2022 11:24 AM UTC

Hi Dmitri, 
 
#Regarding Dynamically changing the SpecialTimeRegions is not updating 
We have fixed the reported issue and included the issue fix in our latest Weekly NuGet release update version 19.4.0.54 onwards which is available for download (nuget.org).   
  
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.   
   
Regards,   
SaiGanesh Sakthivel   



DM Dmitri March 1, 2022 05:12 PM UTC

Hi SaiGanesh Sakthivel,


I've updated the nuget and now it throws null reference exception even though everything is initiated, heres the stack trace:


   at Syncfusion.UI.Xaml.Scheduler.TimelineViewPanel.AddDisableSpecialTimeRegions()
at Syncfusion.UI.Xaml.Scheduler.TimelineViewPanel.UpdateVisibleSpecialTimeRegions()
at Syncfusion.UI.Xaml.Scheduler.TimelineViewPanel.OnSpecialTimeRegionsCollectionChanged(NotifyCollectionChangedEventArgs e)
at Syncfusion.UI.Xaml.Scheduler.TimeSlotViewSettings.OnSpecialTimeRegionsCollectionChanged(Object sender, NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)


I am using it like this:

            

            RoutesScheduler.TimelineViewSettings.SpecialTimeRegions.Clear();




           // Data manipulation here




            var startingBlockRegion = new SpecialTimeRegion
            {
                StartTime = routeView.Route.RouteDate.Date,
                EndTime = routeView.Route.ShiftStart,
                Background = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Gray),
          ​ResourceIdCollection = new ObservableCollection() { routeView }
            };

            // Exception here: (no exception on version 19.4.0.53)
            RoutesScheduler.TimelineViewSettings.SpecialTimeRegions.Add(startingBlockRegion);


            var endingBlockRegion = new SpecialTimeRegion
            {
                StartTime = routeView.Route.ShiftFinish,
                EndTime = routeView.Route.RouteDate.Date.AddSeconds(86350),
                Background = new System.Windows.Media.SolidColorBrush(System.Windows.Media.Colors.Gray),
                ResourceIdCollection = new ObservableCollection() { routeView }
            };


            RoutesScheduler.TimelineViewSettings.SpecialTimeRegions.Add(endingBlockRegion);


SS SaiGanesh Sakthivel Syncfusion Team March 2, 2022 02:37 PM UTC

Hi Dmitri, 
 
#Regarding Object null reference when adding the SpecialTimeRegions 
We have found and the fixed the reported issue from our end. We will include the issue fix in our upcoming weekly nuget release which is expected to roll out on March 8,2022. We appreciate your patience until then. 
 
Regards,    
SaiGanesh Sakthivel 



SS SaiGanesh Sakthivel Syncfusion Team March 8, 2022 11:08 AM UTC

Hi Dmitri, 
 
#Regarding Object null reference when adding the SpecialTimeRegions 
We have fixed the reported issue and included the issue fix in our latest Weekly NuGet release update version 19.4.0.55 onwards which is available for download (nuget.org).   
  
We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you would require any further assistance.   
   
Regards,   
SaiGanesh Sakthivel   


Marked as answer

DM Dmitri March 9, 2022 12:47 PM UTC

Hi SaiGanesh,


I've checked version 19.4.0.55 and looks like its working properly now, Thanks!



SS SaiGanesh Sakthivel Syncfusion Team March 10, 2022 05:55 AM UTC

Hi Dmitri, 
 
We are glad to know that the given fixed is resolved the issue. Please let us know if you need any further assistance.  
  
Regards,  
SaiGanesh Sakthivel

Loader.
Up arrow icon