I Want to make some dropdownlist act like a textbox without losing the ability to explore the list and i want the list to autoselect the list item that match the text in the textbox (Searchable DropDownList).
if the text didn't match any list item i want to insert this value into a lookup table.
I'm using the AutoCompeleteExtender in other textboxes but with this extender the user unable to open the list and select a specific item.
if there is a better practice i'll be glad to know it.
I personally recommend the Select2 plugin, I have been using this in most of my project which have the same requirement as you have.
Select2 gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options.
Select2 Main Site
Select2 Examples Page
For the searchable dropdownlist part, you can use this plug-in. This plug-in also enables you to get the keywords that didn't match any list item
Related
I want to have a Input field where I can input a string. That string could be a new item for that field or I choose to select an existing item. So I do not want Auto-Completion, but Auto-Suggestion which allows me to add entries to the ItemsSource by typing them in.
Basically it is like a normal WPF Combobox with
IsEditable="True"
But how can I get the ComboBox to reduce the list of suggestions to the string I input?
I don't want the ComboBox to present all Items of ItemsSource for selection, but only the ones that contain the string I input.
Can I do it due just setting some ComboBox properties?
For this propose you can use open source solutions like WPF AutoComplete TextBox control or other Autocomplete solutions
For this, I use the DevExpress library. If the ComboBoxEdit is configured correctly, it will auto display a drop down list which is continuously filtered by what the user types. Make sure you set the Mode to Contains, so it matches on any part of what the user types. Users love it as they can quickly narrow down the list of items to select from.
For the record, I am not affiliated with DevExpress. I'm sure Telerik has an equally good control as well.
I have a selection pop up in which user select his criteria from various list boxes, once he close the popup, if user closes Pop up and it returns to main screen, again if he needs to change some other filters he wants to see previous selected items from those listboxes. I am doing it by using Session values which contain comma-separated selected values and setting them by using for loop. I want to know is there any best way to do it instead of For loop, which helps in increase of performance? Please I need your kind suggestions on this.
Thank you,
Sharath
It is not completely clear where you are going but from what I understand you have a list of options that are stored in csl, and these need to populate the list box.
The quick answer is don't store data that way but rather make a class with the data and a list of objects to store the data. After that sorting or selecting the data to show is not a problem using the Select function in Linq...
I have a website that show the user large of theater name.
What is the best way to show them with less scroll or user click?
I mean when user select the button to see all of theater name , all of them (for example 500 theater) display for users.
At first i put drop down list,but now this is not nice ,so help me to choose best and nice object to show my data(theater name +" " + Director: this is my important data to show to user at first).
Note :after user select her-his theater then want to select the sans number, in first version of my website,first user click on combo box and select the theater name then in second combo box the sans number and the time and price of ticket load in telerik coxcomb and display it to user as a grid view(table in Rad combo box).but i want to change this style and make it modern and so nice.But i don't know HOW?
HTML select elements really fail in usability when lists are too long; I would recommend you using a jQuery plugin instead to improve the usability of that particular feature of your site. Your users would be better off with an auto-complete plugin to allow them to search more efficiently the options available.
I have personally used Select2 for this kind of features and it has proved to be really useful. Using this plugin (or almost any other popular auto-complete plugin out there) will allow you to easily implement features like: remote searches (using server-side logic), result templating, result grouping and others.
jQueryUI Autocomplete with a dropdown is probably what you looking for
JQuery Autocomplete with dropdown
I am wondering that if an ASP DropDownList Control support Multiple Selection or not?
If Yes, then how can i enabled multiple selection in DropDownList ???
No, but there's lots of free stuff on the web. Here's a full sourcecode, tutorial and example for just what you need:
Link
By native dropdown never allow multiple selection, but you can use list box instead of that, this have option to set mutli / single item selection. Other wise if you want customized one you have to use some jquery plugin or some other js frame work plugins
you can try this sample link :)
jQuery Dropdown Check List
If I got you right, then you want to enable the multiple selection in your drop down list.
Here are some references where custom controls can solve your problem:
Check here
Or Check here
If have a control that acts like a record selector from a database, say, for example, customers.
The control must act in certain ways allowing the user to type the name, the alias or the code of the customer, and the control will select the correct one, or offer a list of possible candidates, and other behaviors.
I have tried to inherit from ComboBox, but there are some ComboBox behaviors that make it difficult or impossible to do what I want, so I'm better starting from scratch, with a TextBox and Button.
The questions are:
Do you know some open-source component so I don't have to start from zero?
Have you already done something like this and want to share methodologies or tips?
Am I good with a TextBox, a Button and a PopUp control?
Try this control from CodeProject: A Reusable WPF Autocomplete TextBox
It allows you to specify a source list, and a custom filter. In your custom filter you can select to show only those records that have a name, alias or code that fit the text entered, and the user will have a list of filtered options displayed to them.