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

list-container not appending proper class name

1 Answer 177 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 24 Jan 2018, 07:09 PM

Hello,

 

I have noticed that when i initiate the kendo dropdownlist through mvvm, when the drop down box is opened, the k-list-container is not displaying the correct class name when it is above the form field that opens/closes the k-list-container. It always is set as k-state-border-down when it should be k-state-border-up. Can you please advise on how to fix this? I would like to create some styles that work for the different states.

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 26 Jan 2018, 02:12 PM
Hello George,

The element with class "k-list-container" gets a different class applied depending on whether the dropdown is opened above or below the DropDownList's input area. So when it opens above the input the class we use is "k-state-border-down", when it opens below the input the class is "k-state-border-up". See the following short screencast showing how the dropdowns of two DropDownLists initialized with/without MVVM are rendered. The classes applied to both widgets are identical and are correct. The dojo example used to record the screencast.

Regards,
Ivan Danchev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
DropDownList
Asked by
Tony
Top achievements
Rank 1
Answers by
Ivan Danchev
Telerik team
Share this question
or