Open editPop up window on databound

3 posts, 0 answers
  1. Anamika
    Anamika avatar
    157 posts
    Member since:
    Mar 2014

    Posted 23 Oct 2014 Link to this post

    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. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3748 posts

    Posted 27 Oct 2014 Link to this post

    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!
     
  3. Anamika
    Anamika avatar
    157 posts
    Member since:
    Mar 2014

    Posted 27 Oct 2014 in reply to Georgi Krustev Link to this post

    Thanks that did the trick
Back to Top