How to set events programmatically and create event popup with our own fields

5 posts, 1 answers
  1. Lilan
    Lilan avatar
    55 posts
    Member since:
    Feb 2015

    Posted 28 Apr 2015 Link to this post

    Hi, 

     I have kendo ui timeline view controller and i want to set events from a different datasource, which will be javascript array. i tried to set array to kendoScheduler datasource but event was not bind to the controller and when i double click on time line it gives a event popup which has unwanted fields which i cant remove. please find the sample below. 

    http://dojo.telerik.com/@lilan123/UPuDE/3

     

    Thanks, 

    Lilan

  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 30 Apr 2015 Link to this post

    Hi Lilian,

    We are not sure what you are trying to achieve. Could you please clarify? For example what does "event was not bind to the controller" mean? Which controller are you referring to?

    The demo you have attached seems to work - clicking the create button adds three events. What is the functionality you are trying to implement?


    Regards,
    Atanas Korchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Lilan
    Lilan avatar
    55 posts
    Member since:
    Feb 2015

    Posted 30 Apr 2015 Link to this post

    Hi Atanas, 

     Controller in a sense the component. by the way i have found the solution for that as below. 

     var scheduler = $("#schedulerTimeLine").data("kendoScheduler");
    var dataSource = new kendo.data.SchedulerDataSource({
    data: WorkPlanElementList
    });
    scheduler.setDataSource(dataSource);

     

    but still i could not find a solution to customize event popup with our own fields and change events different colors when event is adding to the scheduler component. 

    please check below issue.

    http://www.telerik.com/forums/how-to-change-kendo-ui-scheduler-event-color-programmatically

     

    Thanks 

    Lilan. 

  4. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 04 May 2015 Link to this post

    Hi,

    You should use the editable.template option in order to customize the popup editor.

    You can use resources to set the color of events. Here is a live demo: http://dojo.telerik.com/@korchev/uJotO

    Regards,
    Atanas Korchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Lilan
    Lilan avatar
    55 posts
    Member since:
    Feb 2015

    Posted 04 May 2015 Link to this post

    Hi Atanas, 

    Thanks a lot for your answer and it solved my both issues. Thanks a lot

     

    Regards, 

    Lilan

Back to Top