473,382 Members | 1,392 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Customized Listbox required

I just want to create a listbox . In which on select of one Item few items will display in a box having a tree like structure.Can anyone help me out?

Or Can you help me out in making a listbox where it will show 5 items at a time and a vertical scrollbar, but the above box will be there. I mean if I am giving size attribute 5, it will show 5 items with scrollbar, but the above selectbox also I want.

Regards,
Prasad
Jun 27 '08 #1

✓ answered by hsriat

So atleast can u guide me for the key press events..
See this example.

6 1305
hsriat
1,654 Expert 1GB
I can't guide you the whole, but can show you a rough procedure.

Create a div with position:absolute; display:none, some specific height and width. Onclick of the select button (which ever should show the dropdown), turn style.display = ''.
Inside the div, provide other divs (one div for each option). Leaving the first five option divs, make all the other option divs as display:none.
After all the option divs, provide buttons (or hyperlinks) which'd say "show previous options" "show next options" or what ever is relevant. Onclick of those buttons, toggle the display of the options divs, to show next 5 (or previous 5) option divs.
And most important, you need to manipulate the key press event in a way so that you can select an option with the movement keys.
Jun 27 '08 #2
I had tried with that but one problem is that I cant move in the div with tabs or down arrows...
Jun 27 '08 #3
So atleast can u guide me for the key press events..
Jun 27 '08 #4
hsriat
1,654 Expert 1GB
I had tried with that but one problem is that I cant move in the div with tabs or down arrows...
Did you utilize the onkeypress event?
Jun 27 '08 #5
hsriat
1,654 Expert 1GB
So atleast can u guide me for the key press events..
See this example.
Jun 27 '08 #6
Thanks..It worked for me.
Jun 30 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Michael | last post by:
I am attempting to write a database for non-profit that I am working with. I have some limited (academic) experience with Access. I'm having some trouble with a listbox on one of my forms. Access...
1
by: Edward | last post by:
I am having a terrible time getting anything useful out of a listbox on my web form. I am populating it with the results from Postcode lookup software, and it is showing the results fine. What...
1
by: Daniel | last post by:
hi, I had an asp:listbox, and everytime i click item inside, the bar automatically go to the top, is there any way to keep the scroll position? I turn on the smartNavigation, it still doesn't...
3
by: Ali Chambers | last post by:
Hi, I have created a listbox called "dtlist1" on my VB.NET form. I call a procedure as follows: Private Sub openfile(flname As String) dtlist1.Items.Clear() etc..
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.