Hi Nezdet CascadingDropdown haven’t a style property current now. However, the CascadingDropdown is based on the ASP.NET DropDownList control, in which we can define the CSS for items, so, we can use JavaScript to apply the style to the ListItem which need a
background color, just like the following demo:
When to execute the JavaScript to apply the style is depend on your requirement. For example, we can add the JavaScript function to the “populated” event handler:
Nezdet
Member
159 Points
741 Posts
CascadingDropDown Bgcolor on items
Mar 11, 2009 12:57 PM|LINK
Hi!
iam using cascadingDropdown on my webpage. But I would Like to color some of the items. Put a background color.
is it poosible to do so on cascadingdropdown? or to put som kind of style to the item.
Thanks.
Lance Zhang ...
All-Star
33091 Points
2361 Posts
Re: CascadingDropDown Bgcolor on items
Mar 16, 2009 10:14 AM|LINK
CascadingDropdown haven’t a style property current now.
However, the CascadingDropdown is based on the ASP.NET DropDownList control, in which we can define the CSS for items, so, we can use JavaScript to apply the style to the ListItem which need a background color, just like the following demo:
Thanks.
Nezdet
Member
159 Points
741 Posts
Re: CascadingDropDown Bgcolor on items
Mar 16, 2009 06:58 PM|LINK
How can I do without a button.
Lance Zhang ...
All-Star
33091 Points
2361 Posts
Re: CascadingDropDown Bgcolor on items
Mar 17, 2009 01:36 AM|LINK
Thanks.
Nezdet
Member
159 Points
741 Posts
Re: CascadingDropDown Bgcolor on items
Mar 17, 2009 09:25 PM|LINK
WHere Do I find this Event handler..