Solved

ASP.NET scrollable Checkboxlist or a ListBox onload with multiselect

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

757 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now