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

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

3 Answers 23 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Janusz
Top achievements
Rank 1
Janusz asked on 24 Apr 2015, 11:08 AM
How can I get selected element in change event from pagined dropDownList (option with defined virtual section, and loading pagined data from server) ?

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 28 Apr 2015, 08:01 AM
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!
 
0
Janusz
Top achievements
Rank 1
answered on 29 Apr 2015, 10:12 AM
I want to get selected dataItem object.
0
Alexander Valchev
Telerik team
answered on 30 Apr 2015, 04:32 PM
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!
 
Tags
DropDownList
Asked by
Janusz
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Janusz
Top achievements
Rank 1
Share this question
or