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

Schedular issue

3 Answers 82 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Vipin
Top achievements
Rank 1
Vipin asked on 04 Sep 2014, 10:02 AM
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

3 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 08 Sep 2014, 07:22 AM
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!
 
0
Michael
Top achievements
Rank 1
answered on 25 Apr 2015, 02:12 PM

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");
        } 

 

 

0
Atanas Korchev
Telerik team
answered on 29 Apr 2015, 06:10 AM
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!
 
Tags
Scheduler
Asked by
Vipin
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Michael
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or