Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a drop down box in asp.net page.
here example

XML
<link href="Scripts/chosen.css" rel="stylesheet" />
<script src="Scripts/chosen.jquery.js"></script>

       <script type="text/javascript">
           $(".chosen-select").chosen()
           search_contains = true;
           allow_single_deselect=true;
       </script>


dropdownbox code:
SQL
<asp:DropDownList ID="ddlNo" runat="server" CssClass="chosen-select" Width="100%" AutoPostBack="true" TabIndex="1" OnSelectedIndexChanged="ddlNo_SelectedIndexChanged">
</asp:DropDownList>


this search by only word. I need to search by any character. Please help me to solve this.
Posted
Updated 21-Sep-15 19:44pm
Comments
Sinisa Hajnal 22-Sep-15 2:14am    
"it searches only by word" - you mean it filters only as you type to finish the text?
If you want real search, I suggest you change dropdown box into autocomplete textbox.

Good luck.
amnk.info 22-Sep-15 2:17am    
I try autocomplete with web service. It works, but when this drop down inside grid view it's not working. that's why i use this one.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900