[ kendo scheduler ] field event change

1 Answer 36 Views
DropDownList Scheduler
sun
Top achievements
Rank 2
Iron
Iron
Iron
sun asked on 23 May 2022, 05:43 PM | edited on 23 May 2022, 05:54 PM

Hi,

     In this demo: https://demos.telerik.com/kendo-ui/scheduler/timeline

     I have a drives me crazy question:

       How can I code field's  change event function in edit-form , for example:  roomId or attendees.

 

    Thank you very much for your help. 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 26 May 2022, 12:47 PM

Hi,

We may use the approach shown in Re-validate End DatePicker OnStart DatePicker Change knowledge base article. The following Dojo snippet is based on the article and shows how to take reference to the roomId and attendees pickers and bind to their change events:

        function roomIdChange() {
          console.log("roomId change");
        }
        
        function attendeesChange() {
          console.log("attendees change");
        }
        
        // Scheduler's edit event handler
        function schedulerEdit(e) {
          var roomIdPicker =  $("[data-container-for=roomId] select[data-role=dropdownlist]").data("kendoDropDownList");
          roomIdPicker.bind("change", roomIdChange);

          var attendeesPicker =  $("[data-container-for=attendees] select[data-role=multiselect]").data("kendoMultiSelect");
          attendeesPicker.bind("change", attendeesChange);

 

The roomId picker is a DropDownList component, with select element and data-dore=dropdownlist, while the attendees picker is a MultiSelect component, with select element and data-dore=multiselect.

 

Regards,
Dimitar
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

sun
Top achievements
Rank 2
Iron
Iron
Iron
commented on 26 May 2022, 03:43 PM

Thanks Dimitar, really appreciate your support.
Tags
DropDownList Scheduler
Asked by
sun
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dimitar
Telerik team
Share this question
or