Groups | Blog | Home
all groups > asp.net building controls > april 2005 >

asp.net building controls : Multicolumn combo box


NEWBIE
4/20/2005 7:55:02 AM
Hi,

I have to show data in grid like manner in the combobox.

Please give me ne idea to create multicolumn comboBox.

Thanx.

Steve C. Orr [MVP, MCSD]
4/20/2005 6:43:37 PM
You may be able to use this free multicolumn combobox control:
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=45af5293-92d0-4ab2-b0aa-3e4b976b11dd

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


[quoted text, click to view]

NEWBIE
4/20/2005 7:32:01 PM
Thank you very much Steve for your reply. Actually I want to make a composite
control by inheriting from the combo box control. I am not able to understand
how to go about it. Can you plz help ?

[quoted text, click to view]
Steve C. Orr [MVP, MCSD]
4/20/2005 9:13:04 PM
Yes, here is an example I put together for creating a ComboBox control.
With a little tinkering you should be able to adapt it for your needs:
http://SteveOrr.net/articles/ComboBox.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net



[quoted text, click to view]

NEWBIE
4/21/2005 4:17:05 AM
Thanx a lot steve. Yr article did help me a lot in understanding how to
create a custom combo box.
Is there any way autocomplete feature can be incorportaed into this control ?
[quoted text, click to view]
Steve C. Orr [MVP, MCSD]
4/21/2005 10:06:57 AM
Yes. Here's another free combobox example that includes autocomplete
functionality:
http://metabuilders.com/tools/combobox.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


[quoted text, click to view]

NEWBIE
4/22/2005 12:34:01 AM
I did try andy's combo box but is there any way the same functionality can be
added to your combo box ?
On going through the code of andy's combo box, it appears that it needs
some javascript functions. I couldnt find those functions. Also the code
makes refernce to web.config file which is not there in the project.


[quoted text, click to view]
Steve C. Orr [MVP, MCSD]
4/22/2005 10:04:46 PM
The javascript code is there, I've downloaded it and looked at it.
Look harder.

My control could be modified to provide the functionality you need, but it
would require a good amount of elbow grease.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


[quoted text, click to view]

NEWBIE
4/22/2005 10:42:01 PM
Hi Steve,
Thanx for the reply. Yes the js code is there in the .resx
file but there is no web.config file.

If u go thrrough the code there is a property RefrenceLibraryUrl which
returns a string variable. This property uses the web.config file.

I did find a java script function on the net
http://www.mattkruse.com/javascript/autocomplete/source.html

In your control you add some java script code for the visibility. Now I
think the "elbow grease" would be to add a javascript code to search the text
in the listbox or do i have to use the items.findtext ?
Am I on right track ?

Thanx
[quoted text, click to view]
NEWBIE
4/23/2005 6:34:02 AM
Thanx for your reply. I did found the code, it was in .resx file. But if you
go thru the code there is a property which calls the configuration settings
from web.config.

I modified and added a datagrid to your code, but on load the grid lines of
the datagrid are visible. How do I hide them ?

[quoted text, click to view]
AddThis Social Bookmark Button