Is it possible to add a divider/header within the data array?
Something like.
Item1
-----------------
Header Title
Item2
1 Answer, 1 is accepted
0
Hetali
Telerik team
answered on 10 May 2019, 10:21 PM
Hi Shannon,
Currently, we do not have this feature with the Kendo DropDownButton. However, the example can be achieved by using the Kendo DropDownList component in the following two ways:
public itemDisabled(itemArgs: { dataItem: any, index: number }) {
return itemArgs.dataItem.disabled;
}
In order to make it look like a button, the arrow icon can also be removed by adding the following CSS snippet:
.k-dropdown-wrap .k-select{
display: none;
}
Please take a look at this StackBlitz sample with two DropDownLists, each demonstrating the above mentioned options, and displaying the example pattern.
I hope this helps. Please let me know if you have any further questions pertaining to this case.
Regards,
Hetali
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.