Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i put Scrollbar for checklist control in VS ASP.NET ?

it exists in Listbox but why doesnt it in also checklist ?

Altough they are similar to each other , why is not added by developers of asp.net *? they forget ? please also give information for this one.i want to learn it exactly.thanks
Posted
Updated 21-Aug-12 3:18am
v3

Take a div or a panel. Inside this keep your checkboxlist. Make that div or panel scroll-able.
 
Share this answer
 
Instead of fixing the height with a static value, you can set the max-height of the container div. In this case it will use auto height as long as it's less than the height you specified
To make the max-height cross-browser compatible, you have to set it as follows in your css:

CSS
.checkBoxList {
  max-height:100px;
  height:auto !important;
  height:100px;}
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900