Remove arrow from

2 Answers 490 Views
DropDownList
Kamil
Top achievements
Rank 1
Iron
Kamil asked on 05 Sep 2023, 11:52 AM

How to remove this arrow from kendo-dropdownlist/DropDownListComponent in Kendo UI for Angular? I have tried provided solutions for older version of kendo, but it doesn't work in kendo 11.6.0 and later.

2 Answers, 1 is accepted

Sort by
0
Hetali
Telerik team
answered on 06 Sep 2023, 04:07 PM

Hi Kamil,

In order to remove the arrow icon from the Kendo UI DropDownList component, use the following CSS:

.k-dropdownlist .k-input-button {
  display: none;
}

I have removed the arrow in this StackBlitz demonstration. Make sure to set the encapsulation to ViewEncapsulation.None to apply the component style globally.

I hope this helps. Let me know if I can further assist you.

Regards,
Hetali
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
0
Kamil
Top achievements
Rank 1
Iron
answered on 22 Sep 2023, 10:11 AM

Hi Hetali,

Thanks for your answer.
"Make sure to set the encapsulation to ViewEncapsulation.None to apply the component style globally." This is something I want to avoid. In our app there are other dropdowns and we want to keep arrow on them. Is there any other solution without removing arrow globally?

Regards,
Kamil

Hetali
Telerik team
commented on 22 Sep 2023, 07:42 PM

Hi Kamil,

To avoid removing the arrow icon from other dropdowns, use the id attribute in the dropdown where you want to hide the arrow. For example:

<kendo-dropdownlist id="hideArrow" [data]="areaList"></kendo-dropdownlist>
#hideArrow.k-dropdownlist .k-input-button {
  display: none;
}

In this updated StackBlitz example, the arrow icon is removed from one dropdown component only.

Let me know if I can further assist you.

Regards,
Hetali
Progress Telerik
Kamil
Top achievements
Rank 1
Iron
commented on 28 Sep 2023, 11:41 AM

It works! Thanks!
Tags
DropDownList
Asked by
Kamil
Top achievements
Rank 1
Iron
Answers by
Hetali
Telerik team
Kamil
Top achievements
Rank 1
Iron
Share this question
or