Solved

ASP.NET scrollable Checkboxlist or a ListBox onload with multiselect

Posted on 2003-10-22
2
1,119 Views
Last Modified: 2007-12-19
Hello:

Ideally, I would like to have a checkboxlist that is scrollable, much like the windows listview.  Unfortunately, this is not available in ASP.NET.  Perhaps there is a free control or a tutorial out there that might help?

I would just use the checkboxlist but this totally screws up my web form design if there are too many checkboxes.  Can I use a container that will allow for scrolling?

Finally, I thought about just using a listbox (solves my scrolling problem), but I would like to multiselect a few lines on page load.  Is this possible?

        ListBox1.SelectedValue = 1
        ListBox1.SelectedValue = 2
        ListBox1.SelectedValue = 3

All this amounts to is selecting the last item, not all 3.

0
Comment
Question by:wym
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 50 total points
ID: 9599731
The scrolling can be achieved by putting your checkbox list in a <div> and set the fixed height for it. Then you can modify the flow style of list to auto scroll when it overflows the hieght,
0
 

Author Comment

by:wym
ID: 9601420
Great solution.  Thank goodness for simple newbie answers!
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question