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

Custom event editor template trigger functions in javascript

1 Answer 436 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tyler
Top achievements
Rank 1
Tyler asked on 27 Jan 2017, 10:39 PM

I have a custom event editor template for a scheduler. I have certain components in my template I want hidden until the user selects a certain recurrence value from the dropdown. If they select daily, weekly, monthly, or yearly, different input values should become visible to them under the recurrence selector (using kendo's recurrenceeditor component).

 

I am wondering where I get the recurrence html object, in the script activating the scheduler (main script) or the script that holds the template for the editor? Then how do I set an event to catch when the value of the recurrenceeditor changes to hide/reveal the components I want?

 

Thank you for any help!

1 Answer, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 31 Jan 2017, 09:49 PM
Hello Tyler,

In order to obtain the jQuery object representing the container element that contains the editing UI, one option is to get the container property of the argument passed to the edit event. Here are some relevant HowTo articles:

Here is also a Dojo example demonstrating how to bind to the change event of the Recurrence dropdown.

Please use the provided example as a reference point in your project. 

Regards,
Peter Milchev
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Scheduler
Asked by
Tyler
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Share this question
or