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

Hide DropDownList at Creation

1 Answer 3190 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
mvbaffa
Top achievements
Rank 1
mvbaffa asked on 04 Nov 2011, 06:40 PM
Hi,

I have a DropdownList that I want to create based on JSON pre-loaded with jQuery. This works OK but I need to hide it immediatelly after its creation. The DropdownList will be hosted by a DIV not an input.

The problem is when I call $("#divName").Hide() immediatelly after the creation of the DropDownList, it is not hidden. If later I try to hide it it works.

The reason for this is that I have radiobutton group and two DropDownLists and I would like to show only one of them depending on the radio button checked.

Thanks in advance

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 07 Nov 2011, 10:45 AM
Hello Marcus,

 
Check this jsFiddle demo. The DropDownList is hidden after its creation. 

Best regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
DropDownList
Asked by
mvbaffa
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or