Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
176
rated 0 times [  178] [ 2]  / answers: 1 / hits: 19770  / 10 Years ago, mon, april 28, 2014, 12:00:00

I need to set kendo dropdownlist visible programmatically in javaScript.



I had tried:



dropdownlist=$(#ddl).data(kendoDropDownList);
dropdownlist.visible(false);
dropdownlist.isVisible(true);
dropdownlist.visible(false);
dropdownlist.isVisible(true);


etc...


More From » kendo-ui

 Answers
12

One should always use the API docs to see the features of a widget. In this case, there is no API method for hiding a widget, but you can hide its wrapper element:



var dropdownlist = $(#ddl).data(kendoDropDownList);
dropdownlist.wrapper.hide(); // call wrapper.show() to make it visible again

[#71272] Friday, April 25, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
clifford

Total Points: 86
Total Questions: 114
Total Answers: 111

Location: Wales
Member since Mon, May 17, 2021
3 Years ago
;