Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > /!\ How to colorize selected checkbox in checkboxlist control ?

Reply
Thread Tools

/!\ How to colorize selected checkbox in checkboxlist control ?

 
 
Francois Verbeeck
Guest
Posts: n/a
 
      06-24-2003
Dear UseNet readers,

Does anyone have any idea on how to colorize selected checkbox in
checkboxlist control ?

I've quite a huge checkboxlist (approximatively one full screen) and,
to improve user's experience, i wanted to highlight selected choices.
Does anyone know how to that ?

I can successfully do that on a datagrid by adding some code during
the ItemDatabound process

....
e.Item.Attributes.Add("onmouseover","this.style.ba ckgroundColor='WhiteSmoke'");
....

but there is no "ItemDataBound function on the checkboxlist I tried
to do it on the SelectedIndexChanged but without success (i can't cast
a ListItem to a checkbox list so i'm not able to set a BackColor
property

Anyone knows a css trick to do that ? the right javascript code to add
at the right time ? I've been learning asp.net since only 2 months and
i feel sorry to ask such basic / pointless questions

Maybe i'll have to create a small datagrid with a hidden datavalue
column, a checkbox column and a datatextfield label column to cheat
this ...

Hope anyone can help.

Best Regards.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Colorize vbscript syntax? Christian Perthen ASP .Net 0 03-15-2006 03:51 PM
How to get Selected item in a Databinded CheckBoxList when CheckBoxlist is in a DataList? Patrick.O.Ige ASP .Net 5 06-19-2005 06:11 AM
Adding Checkboxlist/checkbox to dataGrid and retrieving selected value asp123 vbnet via .NET 247 ASP .Net Web Controls 0 03-25-2005 10:49 AM
Colorize Rows in DataGrid other than alternating MattC ASP .Net 0 03-22-2005 09:31 AM
colorize vs color balance? peter Digital Photography 3 08-23-2004 10:50 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57