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

[Solved] Grouped options

1 Answer 106 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
METRI
Top achievements
Rank 1
METRI asked on 12 Nov 2014, 06:01 PM
Hello,
Using Angular and Kendo dropdown, I am trying to come up with drop down options that are grouped like below:
dark
     red
     blue
light
     white
     yellow

my model looks like:
$scope.colors = [      {name:'black', shade:'dark'},      {name:'white', shade:'light'},      {name:'red', shade:'dark'},    {name:'yellow', shade:'light'}    ];

Here is the Telerik Dojo snippet: http://dojo.telerik.com/@dhreddy/AdAla/2

using ng-options result in undefined options. Is there a different way to do this? Please help. Thanks.

Harsha

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 14 Nov 2014, 08:13 AM
Hello Harsha,

Currently, widget does not support group headers, hence it will not work with a SELECT element that has group items in it. There is a UserVoice discussion on the subject, I would suggest you cast your vote for it.
For now the only feasible workaround is to avoid using DropDownList widget with grouped data.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DropDownList
Asked by
METRI
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or