TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Get Selected Text and Value from Kendo Dropdownlist on Change Event
Gowtham K
Aug 22
2015
Code
52.8
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
TestDrop.rar
<!DOCTYPE html>
<html>
<head>
<meta charset=
"utf-8"
>
<title>Untitled</title>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2015.2.805/styles/kendo.common.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2015.2.805/styles/kendo.rtl.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2015.2.805/styles/kendo.default.min.css"
>
<link rel=
"stylesheet"
href=
"http://kendo.cdn.telerik.com/2015.2.805/styles/kendo.mobile.all.min.css"
>
<script src=
"http://code.jquery.com/jquery-1.9.1.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2015.2.805/js/angular.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2015.2.805/js/jszip.min.js"
></script>
<script src=
"http://kendo.cdn.telerik.com/2015.2.805/js/kendo.all.min.js"
></script>
</head>
<body>
<div id=
"example"
>
<div
class
=
"demo-section k-header"
>
<h4
class
=
"title"
>DropDownList</h4>
<input id=
"dropdownlist"
style=
"width: 100%;"
/>
</div>
<script>
$(document).ready(function() {
function onChange() {
alert($(
"#dropdownlist"
).data(
"kendoDropDownList"
).text());
alert($(
"#dropdownlist"
).val())
};
var data = [{
text:
"Item1"
,
value:
"1"
}, {
text:
"Item2"
,
value:
"2"
}, {
text:
"Item3"
,
value:
"3"
}];
$(
"#dropdownlist"
).kendoDropDownList({
dataTextField:
"text"
,
dataValueField:
"value"
,
dataSource: data,
change: onChange,
});
});
</script>
</div>
</body>
</html>
KendoUI
Jquery
HTML