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

Displaying Kendo Combobox Items as Kendo Grid

1 Answer 617 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
GT
Top achievements
Rank 1
GT asked on 24 Apr 2018, 02:56 PM

Hi,

I'm trying to display the dropdown list elements in the combobox as a grid as shown in the attached image.

Here is a plunker which I created but I can't seem to get it right: https://plnkr.co/edit/30EGUs7m2zB3H8Tfxsr9?p=preview

May I know how to achieve it?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Dimiter Topalov
Telerik team
answered on 25 Apr 2018, 12:14 PM
Hi GT,

You can utilize the ComboBox component's templates to customize the rendering of the header, items and footer:

https://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/templates/

You can use them to render tables based on the data items and style them in accordance with your preference, e.g.:

https://plnkr.co/edit/UubBAkW36jbD3UutLXMx?p=preview

Adding a Grid component in the ComboBox item template will require further custom logic for changing the ComboBox value based on the Grid selection, as the whole Grid will be treated as only one data item. Basically you will have a ComboBox with 1 item that renders a custom Grid in the template. This Grid will need to be bound to its own set of data items, and when an item is selected, you can perform some custom logic for adjusting the ComboBox value.

I hope this helps.

Regards,
Dimiter Topalov
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
General Discussions
Asked by
GT
Top achievements
Rank 1
Answers by
Dimiter Topalov
Telerik team
Share this question
or