Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List box not big enough to display all data

Status
Not open for further replies.

M8KWR

Programmer
Aug 18, 2004
864
GB
I have a few list boxes which is not big enough to display all the data from datasource.

I can not make the lilst box bigger (before you say)

I was wondering if it was possible to display the whole line of text in a tooltip style popup when the user hooved over the text.

Or unsure if this is any easier, when the user actually click on the text, then it would appear lets say 1/2 second latter....

Hope this all makes sense, and many thanks in advance.
 
i did think of that but i would prefer not to put random text boxes all of the screen; would look a mess. And the list box is multi select so this may cause a problem.

A horizontal scroll bar would be very handy about now... :(
 
A horizontal scroll bar would be very handy about now... :(
If that's all you want, why not just wrap the ListBox in a div and set it's "overflow" to "auto"?


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
sorry just worked it out, but this causes a problem of the scroll bar for the list box is hidden, until you move the div scroll bar to the right... :(
 
That's the limitation you would have to live with. The HTML select element doesn't have a horizontal scroll so you either have to mimic one, or go with a different approach.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
You can simply expand the width of the list box when you click on a selection in the listbox on enter of the listbox and set back the width of the listbox when you exit the listbox. ex:
on Enter
me.Test1.width = 7200

on Exit
me.Test1.width = 1850

extremely simple and works!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top