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

Create event does not get start and end dates

1 Answer 47 Views
Gantt
This is a migrated thread and some comments may be shown as answers.
Jarosław
Top achievements
Rank 1
Jarosław asked on 25 Apr 2016, 11:58 AM

Hey,

I'm having some problems with creating events in Kendo. When I create event it calls server but it does not fill in start and end dates in my event view model.

public class EventVm : IGanttTask
{
    public int Id { get; set; }
    public int? ParentId { get; set; }
    public int OrderId { get; set; }
    public decimal PercentComplete { get; set; }
    public DateTime Start { get; set; }
    public DateTime End { get; set; }
    public string Title { get; set; }
    public bool Summary { get; set; }
    public bool Expanded { get; set; }
}

What I see in Request.Form is:

Request.Form["Start"] == "4/24/2016 12:00:00 AM"

What I suspect is going on is - date is in US format, while my server is in UK or PL and probably MVC does not want to deserialize this date correctly and puts '01/01/0001 00:00:00 AM' in my  object.

 

Can I somehow force kendo to put it in ISO format? Or specify format somehow? Or maybe I'm missing something completly different?

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 27 Apr 2016, 12:34 PM
Hi,

This post is duplicated to: http://www.telerik.com/forums/after-creating-event-trying-to-update-it-causes-new-event-to-be-created

Regards,
Hristo Valyavicharski
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Gantt
Asked by
Jarosław
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or