This is a migrated thread and some comments may be shown as answers.

4.5 radscheduler doesnt work with service

9 Answers 27 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
mike
Top achievements
Rank 1
mike asked on 02 Feb 2021, 02:30 PM

 

Just use the radscheduler scenario for a service and it works inserting detailed info via 4.0, but with 4.5 .net it gets the following error:

 

(How do I get around this??)

(also - I notice 4.5 doesnt display any tooltip type message liek 4.0 does, and if I type somehting in the simple form subject and hit options, in 4.0 it carries what I typed to the options screen, but 4.5 does not - something is disconnected??)

 

Object reference not set to an instance of an object.Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.] Telerik.Web.UI.RadScheduler.InsertAppointmentInline() +38 Telerik.Web.UI.RadScheduler.OnBubbleEvent(Object source, EventArgs args) +316 System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) +37 System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e) +127 System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) +168 System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9858028 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1696

9 Answers, 1 is accepted

Sort by
0
mike
Top achievements
Rank 1
answered on 02 Feb 2021, 02:41 PM

NOTE:

I download any sample from your site that was created for 4.0 .net - and if I upgrade it to 4.5 this failuer on the options detailed insert occurs with webservice.

0
mike
Top achievements
Rank 1
answered on 02 Feb 2021, 04:50 PM
I dont have any other demos - but this occurs with 2019 and 2020 qtr 3 only if I use 4.5 version. If I use the 4.0 version then everything works. ???
0
mike
Top achievements
Rank 1
answered on 03 Feb 2021, 03:49 PM

Im the only one??

:(

0
Peter Milchev
Telerik team
answered on 05 Feb 2021, 12:20 PM

Hello Mike,

We did not receive such reports and frankly said, this behavior is very strange and unexpected. 

Generally, there are not many changes between 4.0 and 4.5 that could affect the Scheduler. 

Attached you can find a sample project that works properly with WebService binding and the .NET 4.5 version set for the project.

You can see the implementation of the InsertAppointmentInline method below. In my opinion, there is some data that is not passed properly to the server-side.

internal void InsertAppointmentInline()
        {
            IOrderedDictionary data = FormContainer.Template.ExtractValues(FormContainer);
            data = TranslateDataKeysFromTemplate(data);

            Appointment appointmentToInsert = FormContainer.Appointment;
            appointmentToInsert.LoadFromDictionary(data);

            var args = new AppointmentInsertEventArgs(appointmentToInsert, new SchedulerInfo(this));
            if (OnAppointmentInsert(args))
            {
                _appointmentController.InsertAppointment(args.SchedulerInfo, appointmentToInsert);

                ActiveFormMode = SchedulerFormMode.Hidden;
                Rebind();
            }
        }

 

If you still encounter issues, please modify the attached project to replicate the issue and send it back to us as an attachment to an official support thread. That would allow us to investigate locally your exact scenario and help you more efficiently.

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/.

0
mike
Top achievements
Rank 1
answered on 05 Feb 2021, 06:09 PM

OK!

I compared the new project and I see the issue. this line is REQUIRED for 4.5 scheduler to work:

<add key="ValidationSettings:UnobtrusiveValidationMode" value="None" />

If this is not in the config.sys - then it simply doesnt work properly when adding the detailed.

 

0
Peter Milchev
Telerik team
answered on 05 Feb 2021, 06:33 PM

Hello Mike,

This line is actually related to the unobtrusive validation and the change as of .NET 4.5+. More information can be found here:

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/.

0
mike
Top achievements
Rank 1
answered on 06 Feb 2021, 03:28 AM

So your dont let people know your code requires it turned off to work? How am I supposed to just know this? The link you posted is about jquery, not radscheduler.

I love your product, but if its this sensitive and buggy depending on a config setting that someone in no way would relate, I'm out.

0
Peter Milchev
Telerik team
answered on 24 Feb 2021, 03:17 PM

Hello Mike,

I am sorry to hear about your disappointment but unfortunately, this is more of a framework-specific issue, not related to the Scheduler control itself. The validation is a major and breaking change in the .NET 4.5 version. Actually, we have a detailed article about the unobtrusive validation but in most cases the key in the web.config is enough to resolve all:

If you configure the validation settings properly, the asp:RequiredFieldValidators inside the advanced form should not cause the issue inside AJAX-enabled controls.

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/.

0
mike
Top achievements
Rank 1
answered on 26 Feb 2021, 01:11 PM
And I am supposed to know that this or other controls use jquery how?
Tags
Scheduler
Asked by
mike
Top achievements
Rank 1
Answers by
mike
Top achievements
Rank 1
Peter Milchev
Telerik team
Share this question
or