Ask a Question related to ASP.NET General, Design and Development.
-
Francois Verbeeck #1
/!\ How to colorize selected checkbox in checkboxlist control ?
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.
Francois Verbeeck Guest
-
Controling the 'selected' property on CheckBoxList while DataBinding()
Hi Group! When binding the CheckBoxList control, you can only control the 'text' and 'value' properties of each CheckBox created. Suppose I... -
how to update from a checkboxlist or checkbox
Can someone please help me. I thought this would be relatively painless but Im having problems. I've created a small applicaion using asp.net... -
how to put checkbox control by using checkboxlist within the repeater?
how to put checkbox control by using checkboxlist within the repeater? -
Custom Checkboxlist control
Hello, I have a checkbox list control, "check1" , on my page. After I do the databind, here is what the view source looks like. <table... -
checkboxlist control
Why don't you keep one of the checkbox selected on load. -- Regards Khan Imran "buran" <buran@buran.com> wrote in message...



Reply With Quote

