Schedular issue

4 posts, 0 answers
  1. Vipin
    Vipin avatar
    1 posts
    Member since:
    Sep 2014

    Posted 04 Sep 2014 Link to this post

    Hi,
       i am using kendo schedular,when we click on calendar,than it shows a pop up window for appointment form,it's a customeditor template for schedular,in this template i want to use model extendar pop up but when i use javascript functionality than it does not work,please tell me how can i customise this customeditor template.and how can i implement popup extender or tell me if there is any other tool of kendo,and another one thing,i am using core first framework.when i implement this schedular in my project,i select start and end date than it shows 01/01/0001 in my model,i am not understanding this issue,please tell me what m i missing for both issues.please reply me asap.

    thanks & BEst regards
    vipin singhal
  2. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3747 posts

    Posted 08 Sep 2014 Link to this post

    Hello vipin,

    I am afraid that it is not very clear what exactly is the problem and what is the desired functionality that you are trying to accomplish. If you are trying to implement custom editor, then I will suggest you check the following code libraries:

    [HTML]:
    http://www.telerik.com/support/code-library/custom-editor

    [ASP.NET MVC]:
    http://www.telerik.com/support/code-library/custom-editor-9fd60fca3c02

    With regards to the second issue, I believe that you are using ASP.NET MVC (or other framework with the same behavior) and non-nullable dates. The default value of a DateTime object is "01/01/0001" (DateTime.MinValue), which will be translated in JavaScript Date object incorrectly, because the default Date constructor accepts year value less then "100", as a short-hand to the 1900 year (demo as a reference). This is the general explanation, but in order to assist you further I will need more information about your current implementation. A runnable test project will be of a great assistance.

    Regards,
    Georgi Krustev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Michael
    Michael avatar
    2 posts
    Member since:
    Apr 2015

    Posted 25 Apr 2015 Link to this post

    I am having a similar issue.  When I do Update to an item in the scheduler...all the fields besides the start and end date are represented correctly in the scheduler object that is passed to the Update action in the controller.  The object (mine is called CalendarEntry) parameter in the Update action has the new values for everything I update but the Start and End values are reset to default values (01/01/0001).  Why is this?  I see the correct values being passed in the body of the request as shown below:

    POST http://localhost/Origami/Tasks/Update HTTP/1.1
    sort=&group=&filter=&ID=10056&Recurrence=&Domain=&CategoryID=1&Title=Claim+Review&Description=test&Start=2015-04-23T05%3A00%3A00.000Z&StartTimezone=Etc%2FUTC&End=2015-04-23T05%3A00%3A00.000Z&EndTimezone=Etc%2FUTC&IsAllDay=true&RecurrenceRule=&RecurrenceException=

    but in the Update action shown below, the entry.End is 01/01/0001...all other fields have the correct updated values...

            public virtual ActionResult Update([DataSourceRequest] DataSourceRequest request, CalendarEntry entry)
            {
                try
                {
                    new Origami.Models.TasksManager(this.DataManager).UpdateTask(entry.ID, entry.Title, entry.Description, entry.End, entry.CategoryID);
                }
                catch { }
                return View("Calendar");
            } 

     

     

  4. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 29 Apr 2015 Link to this post

    Hi Michael,

    This isn't a known issue and we are not sure what could be causing it. We will need a sample project that reproduces it so we can troubleshoot.

    Regards,
    Atanas Korchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top