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

Events Disappear after canceling the detail modal - HELP!

1 Answer 178 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 12 Aug 2014, 07:23 PM
So this is my first run at using the scheduler.  Got it up and got it populated using the MVC 5 wrapper.  However, when I go to "cancel" out of the details popup -- the event on the calendar disappears.  Any ideas how to prevent this?  Thanks!!

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 14 Aug 2014, 12:13 PM
Welcome aboard Tim!

What you described could happen in case the event's ID field is not updated. Basically, new events are created with ID = 0 (unless specified otherwise), then unique ID should be assigned on the server and sent back to the client. If the server does not return an objects with updated ID, then the Scheduler's DataSource will treat that event as new, despite that it was saved, so it will be removed when closing the edit popup. I would recommend checking this article, as well as our offline examples, which are located in the Kendo UI installation path, under the \wrappers\aspnetmvc\Examples directory.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Scheduler
Asked by
Tim
Top achievements
Rank 1
Answers by
Alexander Popov
Telerik team
Share this question
or