Need a Change event when first load using datasource

3 posts, 0 answers
  1. John
    John avatar
    13 posts
    Member since:
    Apr 2005

    Posted 17 Apr 2012 Link to this post

    I am loading a dropdownlist from a datasource but wish to trigger another action when the first item is selected but I do not seem to be able to get Kendo to trigger a change event?

    The change fires OK when I actually select another item (as expected) but I would like an initial change event to be fired.

    Leaving out the index it does load OK and appear to select the first item OK but I do not get any event.

    Any ideas on how this can be done?
  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 18 Apr 2012 Link to this post

    Hello John,

    The described behavior is expected as all HTML inputs elements does not raise change event when its value is set with JavaScript. You can achieve your goal with wiring the change event of the DataSource and do the required stuff:

    var dropdownlist = $("#ddl").kendoDropDownList({
"change", function() {
    //event handled will be called only once.
    All the best,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Vadivel
    Vadivel avatar
    10 posts
    Member since:
    Apr 2012

    Posted 20 Apr 2012 Link to this post

    how to value is set with JavaScript and call to our kendo script
Back to Top