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

Open editPop up window on databound

2 Answers 72 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Anamika
Top achievements
Rank 1
Anamika asked on 23 Oct 2014, 08:13 AM
Hello,

When my Scheduler loads i have a Event id from database. So i get Event start date and load the day as current day of Scheduler. I also want to Pop up the edit window with data populated from this Event. So in databound Event i call editEvent with Event id but it will not Show any Pop up window.

this.editEvent(id);

I think this database id is not same as Event.uid , so my question is how do i find the Event.uid and bring the edit Pop up window with correct data populated?

Anamika

2 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 27 Oct 2014, 07:52 AM
Hello Anamika,

The editEvent method expects a SchedulerEvent instance, not an id value. You can get the specific event using the data source get method and then pass it to the editEvent method:
var event = scheduler.dataSource.get(id);
scheduler.editEvent(event);


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
Anamika
Top achievements
Rank 1
answered on 27 Oct 2014, 08:03 AM
Thanks that did the trick
Tags
Scheduler
Asked by
Anamika
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Anamika
Top achievements
Rank 1
Share this question
or