Friday, March 16, 2012

newbie needing help Dropdownlist

I have a dropdownlist on a webform that is objectdatabouund to a gridview all the connections work fine. the issue at hand is the dropdownlist populates with the first item lets say that is a name if i start to type the first letter of a diferent namthe list jumps to the letter it type the problem is i can not enter the total name or part of the name it only allow the first letter to be entered how can it get it to do a lookup as i type in the dropdown

I hope I am making sense.

a regular dropdownlist does not directly support that.

have you considered 3rd party controls?

for example:http://easylistbox.com/demoCombo.aspx


You can also have a look at this for incremental search on dropdownlist.

http://www.dotnet247.com/247reference/msgs/29/146771.aspx

Thanks


Thanks for the mention, Mike; also,http://easylistbox.com/demoSpeedSearch.aspx .

E_screw, it looks like that one uses onkeypress and some IE-specific stuff (which may or may not matter to the OP). If you want a slightly more cross-browser approach, trythis article instead; feel free to offer constructive criticism as well.

Cheers,


Peter,

I am looking for a ajax autocomplete I will use the throughtout my application I look at the easylistbox.com solution but was a bit confused about your pricing I will have one url: site using this how much is your cost? How indepth is it to intergrate?


Integration is very simple. You can make it as simple as putting the control on the page and setting the connection string and query, or get a bit more complex with regular .NET databinding.

As far as pricing goes, a single-website license would cover your situation. In fact, a website can have multiple domain names under this scheme as well, as long as they all point to the same directory.



Peter,

I downloaded the trial version of your software to test it out. I have a couple questions. I orginally had a drop down connected thru the object by a dataset to a datagrid I have the drop down containing the last name and it looks up the correct name ok. I created a new webform page to duplicate the same but used your easylistbox I can not see how to connect the dropdown to the object form ny dataset your field also extends across my entire screen . Does the field not have a control on the right corner that allows postback and connection?


I'm not entirely sure what you mean. Youshould be able to use ELB to display data, and get the selection onpostback (via the SelectedValue property). There are demos on thewebsite for just about all of this; if you want to bind to a DataSetobject, you would do it the same way you would with aDropDownList: assign the Dataset as the DataSource property,assign DataValueField and DataTextField, and call DataBind.

As for the width problem, it sounds like you may be using anincompatible DOCTYPE statement. See the instructions about thisin the Installation section of the Help file(Start->Programs->EasyListBox should get you there). Futurereleases will be more compatible with XHTML Transitional, but for nowit would be a good thing to switch the validation schema.

We should probably take further correspondence off this thread since itsort of strays into the realm of commercial product support; let meknow what I can to do help!

Cheers,

PeterBrunone:

Thanks for the mention, Mike; also,http://easylistbox.com/demoSpeedSearch.aspx .

E_screw, it looks like that one uses onkeypress and some IE-specific stuff (which may or may not matter to the OP). If you want a slightly more cross-browser approach, trythis article instead; feel free to offer constructive criticism as well.

Cheers,

Peter, I do really appreciate the work you have done on ELB. I have seen it and its great! Just working out to the OP a non-commercial (may or may not matter to the OP) way.

For a cross browser approach, i prefer the AutoCompleteExtender of ASP.NET AJAX and the article you mentioned was good :)

Thanks

0 comments:

Post a Comment