The downloadable source project above uses the following technologies:
DropDownListChosen. The only requirement is to drag and drop the
DropDownListChosen control. The source code download contains the class library project for the
DropDownListChosen and a test website using the
Using the Nuget-Package
You can now reference this project as a nuget package.
- Install-Package DropDownListChosen
This will add necesary configuration for you, just add the control tag to your webform like this.
<asp:DropDownListChosen ID="DropDownListChosen1" runat="server"
NoResultsText="No results match." width="350px"
DataPlaceHolder="Type Here..." AllowSingleDeselect="true">
- Bind items to your dropdown list either manually by adding
ListItems to the
DropDownListChosen or by binding to a
Datasource example can be found in the downloadable source code above.
You're done! You can now work with your
DropDownListChosen to find what options work best for you. I would love to hear some great feedback if you use this control on your site.
Also added a repository on github.
- 13th July, 2013: Tip published
- 7th August, 2013: Added
DataPlaceHolder property and removed style sheet that causes design problems
- 7th September, 2013: Added new properties
- 25 Octiber, 2015: Added as a Nuget Package