telerik:RadScheduler -- Exception: 13.333333015441895 is not a valid value for Int32

1 Answer 12 Views
Scheduler
Vamsi
Top achievements
Rank 1
Vamsi asked on 29 Aug 2021, 07:56 PM

Hi, This is little bit weird and hard to debug. only one user (rest of the 10 business users are not having this issue on their computers, and all users are having similar systems and applications and all are using latest chrome browser only) is getting below error when trying to open advanceedittemplate in telerik:RadScheduler by clicking on any event on the calendar control. we are using 2012 version telerik.web.UI.dll.

tried to put try catch block in all the events but it logs below error only. and more over I'm not able to replicate this issue on the development machine using Visual Studio 2012.

--------------------------------------------------------------------------------------------------

Inner Exception Type: System.FormatException
Inner Exception: Input string was not in a correct format.
Inner Source: mscorlib
Inner Stack Trace: 
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at System.ComponentModel.Int32Converter.FromString(String value, NumberFormatInfo formatInfo)
   at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
Exception Type: System.Exception
Exception: 13.333333015441895 is not a valid value for Int32.
Source: ~/centerappointmentdetails.aspx CenterGUID : 2945ff5c-78a4-4f80-967b-a244d5e85515
Stack Trace: 
   at System.ComponentModel.BaseNumberConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.AssignToPropertyOrField(Object propertyValue, Object o, String memberName, JavaScriptSerializer serializer, Boolean throwOnError)
   at System.Web.Script.Serialization.ObjectConverter.ConvertDictionaryToObject(IDictionary`2 dictionary, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeInternal(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.ObjectConverter.ConvertObjectToTypeMain(Object o, Type type, JavaScriptSerializer serializer, Boolean throwOnError, Object& convertedObject)
   at System.Web.Script.Serialization.JavaScriptSerializer.Deserialize[T](String input)
   at Telerik.Web.UI.RadScheduler.LoadPostData(String postDataKey, NameValueCollection postCollection)
   at System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

--------------------------------------------------------------------------

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 01 Sep 2021, 12:01 PM

Hello Vamsi,

The issue should be resolved in the latest versions of the control so an upgrade is highly recommended. 

In the meantime, you can try placing the following script somewhere under the ScriptManager of the page:

Telerik.Web.UI.RadScheduler.prototype.saveClientState =  function() {
        return '{"scrollTop":' + Math.round(this._scrollTop) + ',"scrollLeft":' + Math.round(this._scrollLeft) + ',"isDirty":' + this._isDirty + '}';
    }

Regards,
Peter Milchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Scheduler
Asked by
Vamsi
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or