[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ASP.NET scrollable Checkboxlist or a ListBox onload with multiselect

Posted on 2003-10-22
2
Medium Priority
?
1,152 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
2 Comments
 
LVL 23

Accepted Solution

by:
naveenkohli earned 200 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month18 days, 12 hours left to enroll

834 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