Questions tagged [ui-select2]

An AngularJS wrapper for select2, different from jquery-select2

AngularJS wrapper for select2 (deprecated)

Instead, use angular-ui/ui-select

An AngularJS wrapper for Select2 by the AngularUI Team.

Use the tag if you are not referring to the AngularJS version.

Useful links

194 questions
186
votes
16 answers

How do I change selected value of select2 dropdown with JqGrid?

I'm using Oleg's select2 demo, but I am wondering whether it would be possible to change the currently selected value in the dropdown menu. For example, if the four values loaded were: "Any", "Fruit", "Vegetable", "Meat" and the dropdown list…
Adam K Dean
  • 7,387
  • 10
  • 47
  • 68
18
votes
9 answers

ng-model is not getting changed in ui-select

I'm trying to achieve something very straightforward: {$$item.name$}
TeknasVaruas
  • 1,480
  • 3
  • 15
  • 28
16
votes
2 answers

how to handle " The select2('destroy') method was called on an element that is not using Select2"

I am using ui-select2 and trying to open new page on click of edit button. I am seeing some strange issue. First time when I am opening the new page it is opening fine, but when I am cancelling it and again opening the same page, by clicking edit,…
Madhusudan Sahu
  • 247
  • 1
  • 2
  • 11
14
votes
1 answer

AngularJS ui-select dropdown default value

I am using angular ui-select for drop down. How can I set a default value for the drop down value?

Selectize theme

Selected: {{country.selected}}

d3bug3r
  • 2,492
  • 3
  • 34
  • 74
10
votes
5 answers

How do I $watch the Angular-ui's new ui-select (former ui-select2) search string changes?

I noticed that the Angular-UI have discontinued their UI-Select2 directive in favor of the new UI-Select (with multiple themes - select2, bootstrap, selectize). It looks like this:
8
votes
2 answers

angular select2 slow with largish data set

I'm trying to use select2 with a dataset of 5,000. The interaction is slow, especially the search. I will need to handle datasets of >500,000 sometime in the near future. Any suggestions on how to make this efficient? I have no performance issues…
Jason
  • 1,787
  • 4
  • 29
  • 46
7
votes
2 answers

how to convert to an editable select box?

i have an angular 5 project with bootstrap. in one of my component html i have a select box. when i click on it a list of drop down items are displayed and i can choose one . however i want the user to type for some string so that the drop down…
prasanth
  • 181
  • 1
  • 4
  • 12
6
votes
1 answer

AngularJS and UI-Select multiple with data

Good afternoon! I'm trying to use UI-Select to populate the form, associated with model. Model data is received from server using the controller in the following way:
6
votes
1 answer

ng-repeat continuously fired on hover

I'm using UI-Select 0.8.4 and have a large data set. Then I'm using UI-Select to display property values in a dropdown beside the data set. I'm using that for filters. So when choosing from the dropdown, will filter the results. Every time when I…
Gaui
  • 8,723
  • 16
  • 64
  • 91
6
votes
2 answers

Trying to use angular ui-select2 in tag mode (not simple tag), losing objects

I've recently upgraded from angular 1.1.4 up to 1.2.9, and grabbed the latest ui-select2 directive and the latest select2 component. My select2s in tag mode have stopped working. The options list and typeahead work, but when I select anything from…
6
votes
2 answers

select2 - use as autocomplete textbox (even if not an option)

I'm trying to use the select2 add-on as more of a textbox (compared to a dropdown) with autocomplete features. This means that if a user types something that is not in the list, I want this custom value to remain as the value for the form. I've…
user2860417
  • 103
  • 1
  • 1
  • 6
6
votes
5 answers

Angularjs E2E Testing with Angular-UI Select2 Element

I have a partial with a select2 element utilizing Angular UI http://angular-ui.github.io/ The issue I am running into is that the element is required and although i have successfully set the field through the following code, the required attribute…
Brian
  • 2,294
  • 6
  • 30
  • 51
5
votes
0 answers

ui-select will not focus input element on first click with ngAnimate

The issue is that when you have a ui-select in an angular project where ngAnimate is used and click on it to type something in, you aren't able to type until you click on the input element a second time. Basically, it seems to only focus on the…
TomSlick
  • 717
  • 5
  • 21
5
votes
2 answers

Angularjs and UI-Select: how to select an option from code

in angularjs i have a ui-select: {{$select.selected.Name}}
Tom
  • 4,007
  • 24
  • 69
  • 105
5
votes
3 answers

how to set a default value for angular ui-select

Question : how to set default value to the angular ui-select drop down values are fetched from object and object wont be having default value. and ui-select should set the default value in Frontend. eg: drop down values are as follows 1 -all…
praveenpds
  • 2,936
  • 5
  • 26
  • 43
1
2 3
12 13