multi-select

JcomboBox multiple selection

主宰稳场 提交于 2019-12-05 01:19:06
I have a jcombobox in my application. and i want it to support multiple selection (like it do in a jlist). is there any code example? Alberto Solano I think it's not possible, unless you use a JList, like you said. The JComboBox API reports: The user can select a value from the drop-down list, which appears at the user's request. And a JComboBox tutorial : Lists are not terribly attractive, but they're more appropriate than combo boxes when the number of items is large (say, over 20) or when selecting multiple items might be valid. Update: I reviewed this answer, because actually it's

AngularJS ng-repeat in Bootstrap multiselect dropdown

霸气de小男生 提交于 2019-12-05 00:34:12
I used Bootstrap Multiselect Dropdown http://davidstutz.github.io/bootstrap-multiselect/ & embed into the sub-template of AngularJS & let it run with the following function: $scope.$on('$viewContentLoaded', function () { $(document).ready(function() { $('#example27').multiselect({ includeSelectAllOption: true }); }); }); I continued using ng-repeat to print the inside options of this input select: <select id="example27" multiple="multiple"> <option ng-repeat="list in lists" value="{{list.id}}">{{list.name}}</option> </select> But when ng-repeat is in this input select, it did not work & didn't

Multiselect combobox with ExtJs

微笑、不失礼 提交于 2019-12-04 15:09:43
How do you implement a multiselect combobox as part of a Ext.FormPanel using ExtJs? I've been looking, but can't seem to find a solution that is compatible with the latest version of ExtJs ( this question is similar, but doesn't have a working/current solution). This is what I have so far, but it's a single select: new Ext.FormPanel({ labelAlign: 'top', frame: true, width: 800, items: [{ layout: 'column', items:[{ columnWidth: 1, layout: 'form', items: [{ xtype: 'combo', fieldLabel: 'Countries', name: 'c[]', anchor: '95%', allowBlank: false, typeAhead: true, triggerAction: 'all', lazyRender:

Make jqGrid multiselect selection persist following pagination, toolbar search, or filter

家住魔仙堡 提交于 2019-12-04 08:11:15
I have this jqGrid . The following is my desired behavior: The selected item will have the selection persist (and be rendered as such to the user) after changing pages or doing a search (toolbar or filter) When the select all button is selected, if no items on the current page are selected, it selects them all. If there is an item already selected, it will clear the entire list, whether on the page or not. When the Invoice Print button is clicked, it will either use the list of IDs that has been created as we go, or create a list of all IDS that have been selected, whether in the current

JQuery UI Multiselect how to get selected options values

ぃ、小莉子 提交于 2019-12-04 08:07:26
wasted my day while searching how to get selected options values in JQuery UI widget by Michael Aufreiter. Here's the link to his demo site and github: http://quasipartikel.at/multiselect/ As a result I just need value fields of selected options without POST/GET sendings to PHP script. I tried many methods and resultless. Need your help and ideas *Found many topics about jquery ui multiselect but useless because of Aufreiter :s * I went to the site you've got listed above, and was able to run this in my chrome console: $('.ui-multiselect .selected li').each(function(idx,el){ console.log(el

How to add option using MultiSelect jQuery plugin

a 夏天 提交于 2019-12-04 03:42:02
问题 I am using the jQuery - MultiSelect plugin. I want to be able to add an option to my initial select box, and then have the MultiSelect user interface update with the new option. Here is what I have (which doesn't work). var value = $("#newGroup").val(); $('#Select1').append("<option value=\"" + value + "\">" + value + "</option>"); Then I've tried to call the same code to recreate the multiselect along with other options like destroying it first. Here is the code I use to implement the plugin

Bootstrap Multiselect not working

不问归期 提交于 2019-12-04 03:08:57
I'm trying to use multiselect Bootstrap, I used the following code which is also available in their website too at ( http://davidstutz.github.io/bootstrap-multiselect/ ), it shows the button for multi-select and as I already put the selected option for "cheese and pepperoni", it has already selected them too, but whenever I click on it, it does not open the list to choose! <!-- Include the plugin's CSS and JS: --> <script src="http://code.jquery.com/jquery.js"></script> <script type="text/javascript" src="<?php echo base_url('bootstrap/js/bootstrap-multiselect.js'); ?>"></script> <link href="<

Replacing Ext.reg() (xtype) in ExtJS4?

ⅰ亾dé卋堺 提交于 2019-12-04 00:26:24
问题 I want to use the MultiSelect from 3.3 in Ext JS 4, as described in this previous question: Why are the Ext JS multiselect item selector files not included in the Ext JS 3.3 download and where are they? It seems like the way to register xtypes has changed in Ext JS 4. When I try to import this widget,along with ItemSelector.js, I get an error on Ext.reg(). Ext.reg('multiselect', Ext.ux.form.MultiSelect); //backwards compat Ext.ux.Multiselect = Ext.ux.form.MultiSelect; How do I change wdigets

How to POST empty <select .. multiple> HTML elements if empty?

早过忘川 提交于 2019-12-03 22:55:07
I have the following multi-select box in a HTML form, where user can select one or more option. <select id="eng_0" name="eng_0[]" multiple size="3"> <option value="Privilégier">Privilégier</option> <option value="Accepté">Accepté</option> <option value="Temporaire">Temporaire</option> </select> When the user selects no option, the form is POSTed to a PHP backend but it creates no empty array value for $_POST['eng_0'] as if the field was not even on the form. This is kind of like the unchecked checkbox that is not submitted problem. Is there any way to have it POST the select object even if

jqgrid - checkbox for Group header to multiselect group items

别等时光非礼了梦想. 提交于 2019-12-03 22:21:25
Currently I am using jqgrid to bind data. I have 2 questions: 1) When Multiselect is true, we have a checkbox in the header row which selects all rows irrespective of grouping. What i am trying to achieve is to have a checkbox at the level of the group header. So each group will have a multiselect checkbox which when checked only checks all the rows in that particular group leaving the remaining groups as it is. If the checkbox option at the group header is not possible can we have the group header clickable so that we can check all the rows in that group? I found a similar question asked at