Hi, Currently, I have a kendo dropdown list that looks like this,
I want to add a separator between the last two options (not between all options). Here is my requirement.
I want to know I can do this with angular.
1 Answer, 1 is accepted
0
Hetali
Telerik team
answered on 30 Jul 2021, 07:56 PM
| edited on 24 Jan 2023, 10:00 PM
Hi Sashika,
In order to add a separator between the different categories of the Kendo UI DropDownList, add grouping to the DropDownList data. You can also hide the Group title from the dropdown. For example:
In this StackBlitz example, I have grouped the data to add a separator in the Kendo UI DropDownList popup and also hidden the Group title.
I hope this helps. Please let me know if I can further assist you.
Regards,
Hetali Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
I looked in youur stack blitz code but result of it looks like this:
separator is not present anymore. Can you update your stackblitz example?
Hetali
Telerik team
commented on 24 Jan 2023, 10:03 PM
Hi Daniel,
Thank you for reaching out. I have updated the answer with the latest version and modified class names in the CSS to add a separator and hide the title in the Kendo UI DropDownList.
Please give the example a try and let me know if it helps or if you have further questions pertaining to adding a separator.
will work on all dropdowns on my web page. And there are some other dropdowns which use grouping and display some group titles. After applying above styles group titles from other dropdowns disappeared too :(