Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Get Dropdown's Selected Item's text in Kendo UI?

I am using Kendo UI Controls. I want to get the selected text of the dropdown list in jquery. I have used this syntax :

 $("#ddl").data("kendoDropDownList").text(); 

I am able to get the text in all browsers except IE. I don't know why this is not working in IE, please help me. Is there any other way to get selected Text ?

like image 918
Ram Singh Avatar asked Feb 06 '14 10:02

Ram Singh


People also ask

How do I get the selected text of kendo Dropdownlist?

$("#ddl"). data("kendoDropDownList"). text();

How do you get the selected text from Kendo multiselect?

text(). split('-');---for dropdownlist output: (3)["D","UDMS","TMA Data Mgmt System"] var MPID = $("#DDRolecode"). data("kendoMultiSelect"). value().

How do I select the first item in kendo Dropdownlist?

$("#CATEGORY_CODE"). data("kendoDropDownList"). select(0);

How do I set a dropdown value in kendo grid?

If your KendoDropdown has a change event, you must trigger it manually by calling dropdownlist. trigger("change"); after calling select .


1 Answers

In order to get text value of a DropDownList use command as below :

$("#ddl").data("kendoDropDownList").text(); 
like image 138
Dinesh Haraveer Avatar answered Sep 30 '22 07:09

Dinesh Haraveer