Solved

ASP.NET scrollable Checkboxlist or a ListBox onload with multiselect

Posted on 2003-10-22
2
1,122 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

More Than Just A Video Library

Train for your certification. Learn the latest DevOps tools. Grow your skillset to do better work.

At Linux Academy, we release new training modules every week so you'll always be up to date on the latest tech.

Question has a verified solution.

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

It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

705 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