Virtual DropDownList (pagined) - get selected element in change event

4 posts, 0 answers
  1. Janusz
    Janusz avatar
    18 posts
    Member since:
    Jan 2015

    Posted 24 Apr 2015 Link to this post

    How can I get selected element in change event from pagined dropDownList (option with defined virtual section, and loading pagined data from server) ?
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 28 Apr 2015 Link to this post

    Hi Janusz,

    If I understood correctly you would like to get the selected HTML element. If that is the case please use current method of the DropDownList.
    change: function(e) {
      var currentElement = this.current();
    }


    It is important to know that the HTML element will be reused to display another dataItem when the user changes the scroll position.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Janusz
    Janusz avatar
    18 posts
    Member since:
    Jan 2015

    Posted 29 Apr 2015 Link to this post

    I want to get selected dataItem object.
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 30 Apr 2015 Link to this post

    Hi Janusz,

    You may use the dataItem method.

    Regards,
    Alexander Valchev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready