PDA

View Full Version : Change CSS of Listed Items in SelectBox



lesiano
Jun 25, 2014, 3:29 PM
Hi,

I want to change the item CSS when you see all options in that you can choose.

in this case the items in "Green" must have the same style than the one in "red"


13061

Is it possible?

I tried all Cls options without lucky :(

thanks

Daniil
Jun 25, 2014, 5:49 PM
Hi @lesiano,



I tried all Cls options without lucky :(


I guess you tried with a SelectBox's Cls.

Its drop down list is rendered (in HTML) outside of the SelectBox element. So, its Cls is not applied to its list. You could check that inspecting HTML elements in a browser.

I would try with:

<ext:SelectBox runat="server">
<ListConfig Cls="my-list" />
</ext:SelectBox>

lesiano
Jun 26, 2014, 8:10 AM
Hi Daniil,

It's worked!!! Thanks!!