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
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.
Im the only one??
:(
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/.
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.
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/.
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.
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/.