Custom event editor template trigger functions in javascript

2 posts, 0 answers
  1. Tyler
    Tyler avatar
    3 posts
    Member since:
    Jan 2017

    Posted 27 Jan Link to this post

    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!

  2. Peter Milchev
    Peter Milchev avatar
    282 posts

    Posted 31 Jan Link to this post

    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. 

    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.
Back to Top