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

Option-Label Interfering with DDL

7 Answers 94 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Max
Top achievements
Rank 1
Max asked on 22 Jan 2019, 12:12 PM

Hello, 

I am trying to use a DDL (This happens to both HTML Helper & Tag Helper) With a 'Option-Label'. however, every time this is applied it causes the DDL to deformat. Please see the attached pictures. Do you have any idea why this is happening? 

7 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 25 Jan 2019, 09:02 AM
Hello Max,

The described behavior is related to an intended change in the rendering behavior of the DropDownList's option label. This is implemented in 2015 Q1 in order to provide support for grouping and virtualization scenarios. The actual change moves the optionLabel outside of the items list and places it as a static header. This is described in greater details in the following section of the documentation:



Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Max
Top achievements
Rank 1
answered on 25 Jan 2019, 10:48 AM
Please Look at the screenshots attached, more specifically the bottom of the DDL. You can see that because of the Option-Label the List Items escape the dropdown.
0
Dimitar
Telerik team
answered on 30 Jan 2019, 07:50 AM
Hello Max,

I was not able to replicate the described behavior with the option label. In the Cascading DropDownLists Demo for ASP.NET Core, the first component has OptionLabel() set and the popup list is rendered correctly.

May I ask you to verify if the above demo is working correctly on your end? If this is not the case, then could you provide additional details so that I am able to continue investigating the issue?

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Max
Top achievements
Rank 1
answered on 30 Jan 2019, 04:15 PM

Hello, 

I copy & pasted the code from the demo and i am still experiencing the styling issue.

0
Dimitar
Telerik team
answered on 31 Jan 2019, 02:14 PM
Hello Max,

I managed to reproduce the issue that you are experiencing. The issue is actually caused by referencing Bootstrap 3 along with the Default Sass theme. In general, due to the box-sizing differences between the two, a small patch can be included in order to allow them working together:


I am attaching a simple project, where the discussed issue is resolved. I would suggest inspecting the _Layout.cshtml page where the client-side resources are included in the required order along with the above-mentioned patch.

Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Max
Top achievements
Rank 1
answered on 31 Jan 2019, 03:07 PM

Hello Dimitar,

I am glad you could replicate are problem we are having, however, we are not referencing bootstrap 3 anywhere in the project. We are only referencing Bootstrap v4.1.1, Can you try to replicate are issue with this version.

 

Thanks.

 

0
Misho
Telerik team
answered on 05 Feb 2019, 02:37 PM
Hello,

The same approach need to be applied for Bootstrap v4. Here is a screenshot of the result on my end:  http://take.ms/DbNQb
The modification in the _Layout.cshtml file is in accordance with the approach in the Bootstrap Integration article.
I'm attaching the page for your convenience.

Best Regards,
Misho
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DropDownList
Asked by
Max
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Max
Top achievements
Rank 1
Misho
Telerik team
Share this question
or