Why DaysViewSettings.StartHour is Double and how starHour 10:40 ?

Hello.

In my code i use variable like timestamp for store Time and i want start my DayView from hour like 10:40 or 10:43
How can i reach it? Why DaysViewSettings.StartHour is type Double? When i try assign value 10.666666 which equal 10:40 i have error Syncfusion.Scheduler.StackOverflowException.


13 Replies 1 reply marked as answer

KA Karthikraja Arumugam Syncfusion Team February 3, 2021 01:19 PM UTC

Hi Marcin, 
 
Greetings from Syncfusion. 
 
We would like to inform you that in Scheduler, StartHour and EndHour properties type is double, which is used to specify the start and end values in Hour with Minutes like 9.25(9.15 AM), 10.5(10.30 AM). 
 
Currently, we are checking the reported issue on assigning value 10.66666 to StartHour property. We will check and update you with further details on or before 5 February 2021. We appreciate your patience until then. 
 
Regards, 
Karthik Raja A  



KA Karthikraja Arumugam Syncfusion Team February 5, 2021 01:07 PM UTC

Hi Marcin, 
 
Thank you for your patience. 
 
We have checked the reported issue and able to replicate the exception on Setting StartHour with 10.6666. We have logged an issue report for the same, we will fix the issue and include the issue fix in our weekly nuget release which is expected to roll out on February 23, 2021. We appreciate your patience until then. 
 
Note: The provided feedback link is private, and you need to login to view this feedback. 
 
As per Scheduler behavior, StartHour double value will be converted into nearest minute value. So as of now, you can use StartHour = 10.65, which is 10.38 AM. 
 
Regards, 
Karthik Raja A 



MM Marcin Marcinkowski March 3, 2021 08:07 AM UTC

Hello,
how is the work going ?
Can You prepare for me .dll in my 18.2 version ?



KA Karthikraja Arumugam Syncfusion Team March 4, 2021 02:17 PM UTC

Hi Marcin, 
 
We regret for the delay. 
 
We have fixed the issue but due to stability concerns, we haven’t included the fix in weekly nuget package. We will test and provide the issue fix patch in the requested package version (v18.2.0.44) on March 9, 2021. We appreciate your patience until then. 
 
Regards, 
Karthik Raja A 



KA Karthikraja Arumugam Syncfusion Team March 11, 2021 03:08 PM UTC

Hi Marcin, 
 
Sorry for the inconvenience cause. 
 
We have fixed the issue and we are testing it with various scenarios. We will create and share the issue fix patch within March 12, 2021.  
 
Regards, 
Karthik Raja 



MM Marcin Marcinkowski March 11, 2021 03:56 PM UTC

Thanks for reply,

I hope that You remember about my previous problem :
https://www.syncfusion.com/forums/158668/change-item-source-on-changed-appointment-box-size-monthview 
And both fix will be in this patch ?




KA Karthikraja Arumugam Syncfusion Team March 12, 2021 01:44 PM UTC

Hi Marcin, 
 
Thank you for your patience. 
 
We have fixed the exception on setting DaysViewSettings.StartHour property with decimal value and included the issue fix in SfScheduler package version 18.2.0.44 and created patch for the same. 
 
Set Up: 
 
Custom Assemblies: 
 
Nuget: 
 
Kindly clear nuget cache before installing patch, please find the below link to clear Nuget cache,
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache    
    
Installation Direction:       
{Syncfusion Installed location} \Essential Studio\18.2.0.44\lib\net46\Syncfusion.SfScheduler.WPF.dll                 
 
We will include the issue fix in our 2021 Volume 1 release which is expected to roll out at the end of March, 2021. Please let us know if you require any further assistance.   
 
Regards,    
Karthik Raja A


MM Marcin Marcinkowski March 16, 2021 12:19 PM UTC

Thanks for reply,

After Your fix, i have problem with set EndHour. I get this error always when i set EndHour greater then startHour
For example startHour is 10.6666.... and endHour is 15.0 and i get this error :
This error appear only when startHour is like 10.666...  and EndHour is like 11, 13, 14, 15 etc. When start hour is equal 3 or 4 or 5 or 10 this error does not appear


MM Marcin Marcinkowski March 16, 2021 12:24 PM UTC

Here is mirror to error :  https://pasteboard.co/JSSnRcK.jpg
Error is : An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll


KA Karthikraja Arumugam Syncfusion Team March 17, 2021 01:48 PM UTC

Hi Marcin, 
 
Thank you for the update. 
 
We have checked the issue with the provided patch, but we are unable to replicate the mentioned issue from our side. We suspect that you are using old assembly, kindly remove cache and use provided assembly.  
 
Please find the below link to clear Nuget cache,
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache    
 
Sample link: SchedulerSample 
 
We have attached tested sample. Kindly check the sample and if you are still facing the issue, kindly modify our sample to replicate the issue from our side and revert us back. It will be helpful for us to check and resolve the issue as soon as possible. 
 
Regards, 
Karthik Raja A 



MM Marcin Marcinkowski March 18, 2021 10:04 AM UTC

So, in Your sample project i have the same error...

Process is terminated due to StackOverflowException. An unhandled exception of type "System.StackOverflowException" occurred in mscorlib.dll

i run this sample on totaly new VS 2019 with .net 4.6 and it still did not working.
Sorry for polish language on the screen but the key information is in english


KA Karthikraja Arumugam Syncfusion Team March 19, 2021 01:14 PM UTC

Hi Marcin, 
 
Thank you for the update. 
 
As we have already mentioned we are unable to replicate the issue from our end, so we have created new assemblies with this fix. Kindly check the attached sample with the new assembly. 
 
 
We hope this will resolve the issue, if you are still facing the issue kindly revert us. 
 
Regards, 
Karthik Raja A 



SS SaiGanesh Sakthivel Syncfusion Team May 17, 2021 11:17 AM UTC

Hi Marcin, 
 
We are glad to announce that our Essential Studio 2021 Volume 1 Service pack v19.1.0.63 is rolled out and the issue “Exception occurs on setting StartHour with 10.666” included in the release is available for download under the following link. 
 
 
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
 
Regards,  
SaiGanesh Sakthivel

Marked as answer
Loader.
Up arrow icon