We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Create Appointment dialog when "All Day" checked does not post dates

Thread ID:





128016 Dec 27,2016 08:30 AM UTC Jan 2,2017 05:07 AM UTC ASP.NET Core 3
Tags: Schedule
Asked On December 27, 2016 08:30 AM UTC

Seems to be problems in ej.web.all.min.js, because same issue reproduces in MVC5.

Using this sample code in view:
             .Views(new List<string> { "day", "week", "month" })
             .AgendaViewSettings(x => x.DaysInAgenda(7))
             .TimeZone("GMT +03:00")
             .WorkHours(wh => wh.Start(8).End(23).Highlight(true))
             .ContextMenuSettings(x => x.Enable(true))
             .CategorizeSettings(x => x.Enable(false))
             //.CategorizeSettings(x => x.Enable(true)
             //                          .AllowMultiple(true)
             //                          .Datasource(ds => ds.Adaptor(AdaptorType.UrlAdaptor).URL("Schedule/GetCategories"))
             //                          .Id("Id").Text("Text").Color("Color").FontColor("FontColor")
             //                   )
             //.Resources(res =>
             //    res.Field("RoomId").Title("Room").Name("Room").AllowMultiple(false)
             //       .ResourceSettings(flds => flds.Datasource(ds => ds.Adaptor(AdaptorType.UrlAdaptor).URL("Schedule/GetRooms"))
             //                                 .Text("Text").Id("Id").GroupId("GroupId").Color("Color")).Add();
             //    res.Field("TutorId").Title("Tutor").Name("Tutors").AllowMultiple(true)
             //        .ResourceSettings(flds => flds.Datasource(ds => ds.Adaptor(AdaptorType.UrlAdaptor).URL("Schedule/GetTutors"))
             //                                 .Text("Text").Id("Id").GroupId("GroupId").Color("Color")).Add();
             .AppointmentSettings(fields => fields.Datasource(ds => ds.Adaptor(AdaptorType.WebApiAdaptor)
                                                  .Subject(field => field.Field("Subject").ValidationRules(v => v.AddRule("required", true)))
                                                  .Description(field => field.Field("Description").ValidationRules(v => v.AddRule("required", true)))
                                                  //.Categorize(field => field.Field("Categorize").ValidationRules(v => v.AddRule("required", true)))
                                 //.ResourceFields(x =>
                                 //    x.Field("RoomId").ValidationRules(val => val.AddRule("required", true));
                                 //    x.Field("TutorId").ValidationRules(val => val.AddRule("required", true));

when i click on empty cell then enter something into subj and click "Create Appointment" this JSON posted to API:

In this case Start\End Time is not null. But when i do exact same thing using "Edit" dialog POST data will lack Start\End time so its impossible to determine appointment date
Content-Type: multipart/mixed; boundary=changeset_1e631c55-893b-4e05-b4f1-6b6b23087dff

Content-Type: application/http
Content-Transfer-Encoding: binary

POST undefined HTTP/1.1
Accept: application/json;odata=light;q=1,application/json;odata=verbose;q=0.5
Content-Id: 0
Content-Type: application/json; charset=utf-8

{"Subject":"dvddvsd","Id":1,"AllDay":true,"Recurrence":false,"Description":"dfsdfsd","StartTimeZone":"GMT +03:00","EndTimeZone":"GMT +03:00","StartTime":null,"EndTime":null,"Guid":"f01db398-88e1-b500-aafa-6ecbc3470532","AppTaskId":1,"ParentId":1}


Sellakumar [Syncfusion]
Replied On December 28, 2016 06:27 AM UTC

Hi Yaroslav, 
Thanks for contacting Syncfusion support. 
We have checked with the sample code which you shared with us and suspect that the problem might be due to the value passed to the TimeZone property. For the TimeZone property, invalid value is mapped which is the cause of this issue. We have processed it based on the Coordinated Universal Time (UTC). 
    .TimeZone("GMT +03:00") 
    .TimeZone("UTC +03:00") 
Kindly make use of the above value and let us know, if it solves your problem or else you need any further assistance on this. 
Sellakumar K

Replied On December 28, 2016 08:45 AM UTC

Many thanks, problem now resolved

Karthigeyan Krishnamurthi [Syncfusion]
Replied On January 2, 2017 05:07 AM UTC

Hi Yaroslav, 
We are glad to know that your issue has been fixed. 
Kindly let us know, if you need any further assistance. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon