Combobox item style
Posted
by
user373721
on Stack Overflow
See other posts from Stack Overflow
or by user373721
Published on 2012-09-23T21:44:00Z
Indexed on
2012/11/28
11:04 UTC
Read the original article
Hit count: 290
my project is asp.net MVC, using Telerik MVC combobox. I can change the sytle of the first item if I use:
var item = combobox.dropDown.$items.first();
item.addClass('test');
Or change all items, using:
combobox.dropDown.$items.addClass('test');
But I need to change just specific items (based on a model), I tried:
combobox.dropDown.$items[1].addClass('test');
I get this error:
Object doesn't support property or method 'addClass
'
© Stack Overflow or respective owner