javascript,jquery,html,multi-select
This appears to be working: $(document).ready(function() { $("select").multiselect(); }); var strAppnd = ''; var selectValue = ''; var flag = true; $("#mltyslct").change(function() { var foo = []; $('#mltyslct :selected').each(function(i, selected) { foo[i] = $(selected).val(); }); for (var i = 0; i < foo.length; ++i) { selectValue = foo[i].substring(0, 1); }...
c#,winforms,data-binding,listbox,multi-select
I'm not sure if I got you right, but if I did, yes, you can do it. For example: List<KeyValuePair<string, Course>> coursesList = new List<KeyValuePair<string, Course>>(); List<Course> cList = // Get your list of courses foreach (Course crs in cList) { KeyValuePair<string, Course> kvp = new KeyValuePair<string, Course>(crs.Name, crs); cList.Add(kvp);...
Take a look at any of these: http://plugins.jquery.com/tag/multiselect/ Personally, I would go with Selectize.js. It's fairly easy to implement and looks beautiful. It sounds like something that might match your needs....
c#,winforms,datagridview,multi-select
In your GridNavigation method, under both conditions, if (keys == Keys.Enter || keys == Keys.Right) and else if (keys == Keys.Left), the guilty party here is the recurring line: dataGridView1.Rows[iRow].Cells[i].Selected = true; What went wrong? When dataGridView1.MultiSelect == false the above line effectively sets the current cell, not just the...
reporting-services,parameters,multi-select
Create a DataSet to get "Default JobType" based on report type as per your requirement like as you said IF 3 IN (@ReportType) SELECT 0 as JobTypeId, 'N/A' as JobTypeDesc create a SP (stored procedure or query with parameter report type) as we normally do for Cascading Parameters ... once...
angularjs,twitter-bootstrap,multi-select,angular-strap
This might be an issue with angularJS ng-options format. After providing the expected ng-options format it is working fine here. Wrong format: JS $scope.selectedFruits = ""; $scope.selectedFruits = ['Apple', 'Orange']; $scope.fruits = [ {value: 'Mango'}, {value: 'Apple'}, {value: 'Orange'}, {value: 'Papaya'}]; HTML <button type="button" class="btn btn-default" ng-model="selectedFruits" data-html="1" data-multiple="1" data-animation="am-flip-x"...
jquery,select,onchange,multi-select,deselect
With a bit of debugging I have actually found my own answer. The change event does fire, but jquery val() returns "null", not an empty array, when no elements are selected. It is enough to compare to null to get it working: $('#multiselect').change(function(){ var selecteditems = $(this).val(); if(selecteditems===null){ $('#selectedversions').text('none'); }...
javascript,jquery,html,table,multi-select
[original answer removed based on updated question] Given an array (arr) like this: ['Col 2', 'Col 3', 'Col 1'] … or this: ['Col 1', 'Col 3'] … this will order the main table's columns to match, and it will hide unused columns: var tr= $('#mainTable > tbody > tr, #mainTable...
reporting-services,parameters,multi-select,selectall
I suspect you are feeding duplicated values into the Parameter's Available Values / Value Field. SSRS gets very confused by this. I would fix this will a GROUP BY or similar technique in the source Dataset....
javascript,internet-explorer,knockout.js,multi-select
I got it. I am using subscriptions and two way binding pretty extensively and all of that seems to still work properly. Basically, the KO infrastructure just goes through and syncs up the UI with the updated model binding on a UI or model update. Thus, it is setting every...
forms,vba,listbox,multi-select
Since you are dealing with Dates, you need to make sure that the Dates are enclosed between # tags, and to be sure that the dates are in the MM/DD/YYYY format. So the following code should work, Private Sub cmdOK1_Click() Dim vItem As Variant Dim strSet As String Dim i...
javascript,jquery,html,multi-select
The following could be used: $('#destination').change(function() { // Whenever the select is changed var arr = []; // Create an array $('#destination option:selected').each(function(){ // For each selected location arr.push($(this).data("foo")); // Push its ZIP to the array }); console.log(arr); // will include the ZIP code(s) of selected location(s). }); jsFiddle example...
I think there is some confusion in your code for the correct utilisation of attributes "class" and "id". For your script, the code below does the job : <div class="tab-pane fade active in" id="summary"> <br> <a href="#"> <span id="add_something" class="glyphicon glyphicon-plus" title="add summary" aria-hidden="true">lkjlkjk</span> </a> <br><br> <div id="something_tbl"> <p>Something <span...
javascript,filter,multi-select,separator,webix
In Webix 2.2 you can use separator property next to a filter configuration. Something like next header:{ content:"multiSelectFilter", separator:";" } Full sample can be checked by the next link http://webix.com/snippet/e3ed3929...
c#,asp.net-mvc,razor,multi-select,pagedlist
Overall my approach was on track. The key part that I was missing was sending the selected values from the view to the controller, which means converting an int array (say x[] = {1,2,3}) to query parameters x=1&x=2&x=3 so it can be passed back. Here is my simplified overall solution...
javascript,angularjs,testing,protractor,multi-select
To solve this i took css help. I had checked css in inspect element then i got this solution element.all(by.buttonText('None selected')).then(function(items) { items[1].click(); }); element.all(by.model('inputLabel.labelFilter')).then(function(items) { items[1].sendKeys(protractor.Key.DOWN+protractor.Key.DOWN); }); ptor.sleep(200); element.all(by.css('.multiSelectFocus')).then(function(items) { items[0].click(); }); Here i am selecting particular option using DOWN key...
php,laravel,laravel-4,multi-select
Here's how I accomplish multi-selects in Laravel 4: <?= Form::select( 'category_ids[]', App::make('Category')->lists('name', 'id'), $contact->categories()->select('categories.id AS id')->lists('id'), [ 'class' => 'form-control', 'multiple' ] )?> The resulting select markup looks like this: <select class="form-control" multiple="multiple" name="category_ids[]"> <option value="1" selected="selected">category 1</option> <option value="2">category 2</option> </select> And then, when you...
android,android-gridview,multi-select
You are going right way, you need to inflate contextual action mode menu on actionbar, take a look at Anroid context menu listView.setMultiChoiceModeListener(new MultiChoiceModeListener() { @Override public boolean onActionItemClicked(ActionMode mode, MenuItem item) { // Respond to clicks on the actions in the CAB switch (item.getItemId()) { case R.id.menu_ok: //TODO do...
javascript,jquery,multi-select
try $("select").find("option:selected").last().closest("optgroup").attr("label") test on this fiddle. if you want to accept this solution, consider to accept sudhar's solution instead, as he was the first to psot the main issue (he should add the last() method call, of course). edit: the op actually wanted the most recently selected item reported. this...
javascript,jquery,foreach,scope,multi-select
With the information you gave us and without sample data everything looks fine. But you have some minor mistakes which could lead to bad results. I decided to have a look on it, make some corrections and get it workin correctly with some sample data. What you should take care...
css,extjs,gridview,multi-select
Sho' 'nuf: Added <link rel="stylesheet" type="text/css" href="resources/css/style.css"/> to index.html, did a "sencha app build" and all is well! See here: Interestingly, when I uncheck the items from the search list, they do not get removed from the selected pane. See here: ...
wpf,checkbox,visual-studio-2013,multi-select
Not too hard. Code Behind public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); } private void Checkbox_OnMouseEnter(object sender, MouseEventArgs e) { var checkbox = sender as CheckBox; if (e.LeftButton == MouseButtonState.Pressed) { if (checkbox != null) { checkbox.IsChecked = !checkbox.IsChecked; } } } private void UIElement_OnGotMouseCapture(object sender,...
grails,multi-select,scaffolding
After reading on several websites that grails' scaffolding is only intended to provide a rough outline that one needs to fill to attain more finegrained behaviour, I settled on foregoing scaffolding and created my own controllers and views, then adapted them by modifying their update methods. For future visitors to...
javascript,jquery,html,angularjs,multi-select
If you want to keep the <option> in the <select> element before you add the ng-options you'll have to use transclusion. the ng-options directive doesn't use transclusion, but you can create a custom directive that does. You can do that by utilizing transcludeFn in the directive post compile function: compile:...
javascript,jquery,forms,multi-select
First, check if there are any items selected by doing if(!$('#carchoice').val()) then, set them all selected by $('#carchoice option').prop("selected", true); $('form').submit(function(){ if(!$('#carchoice').val()){ $('#carchoice option').prop("selected", true); } }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <form action="http://example.com" method="get" id="carfare" name="mycarform"> <select name="car" id="carchoice" multiple> <option...
ruby-on-rails,drop-down-menu,multi-select
What is the type of your permission attribute of Xaaron::Permission model? If it is a reference (integer) you could try this: <%= f.select(:permissions, options_for_select(Xaaron::Permission.pluck(:name, :id), @role.permissions.pluck( :id ), {}, class: 'form-control', multiple: true) %> ...
jquery,scroll,bootstrap,multi-select
For the ul element in the example, you can simply set a fixed height and set the overflow-y property as scroll. For the example in your link; ul {height:50px;overflow-y:scroll;} ...
Fetch your selected items from the database/$_POST and loop through them. In the html: if($palestrantes['id'] == $fetched_item['id']){ echo '<option value="'.$palestrantes['nome'].'" checked="true">'.$palestrantes['nome'].'</option>'; //----------------------------------------------^^^^^^^^^^^^^^ } else{ echo '<option value="'.$palestrantes['nome'].'">'.$palestrantes['nome'].'</option>'; } ...
If you have ManyToMany relationships between say Group and Project you can use sync() method to maintain association as below, $group->projects()->sync([$projId1, $projId2]); Above will remove all previous association between current group($group) and projects and associates newly supplied projects i.e. $projId1, $projId2. If you want to maintain previous associations pass false...
jquery,multi-select,magicsuggest
I resolved the issue with the following code, ms.input.focus(); Regards, Rekha...
php,html,mysql,drop-down-menu,multi-select
Finally, I found what I was looking for. So I share it since might be useful for those with similar question. First, as Marc said, I had to add multiple like below: <select name="countrylist[]" multiple="multiple"> and this is the html line that I was searching for : <option value="<?php echo...
javascript,jquery,twitter-bootstrap,multi-select,bootstrap-multiselect
I got it done by using a hidden field. var text = $('#sites').val(); $('#sites_hidded').val(text); with html (removed name attr from select so it will not submit with form) <select id="sites" class="form-control" multiple="multiple"> <option value="1">Site 1</option> <option value="2">Site 2</option> <option value="3">Site 3</option> </select> <input type="hidden" name="sites" id="sites_hidden"> ...
multi-select,modx-revolution,getresource
Set commma as custom output type of your tv:
reporting-services,parameters,ssrs-2008,multi-select,ssrs-2008-r2
You need to add a value to your multiselect parameter that effectively means "Ignore this and use the text box". For instance, add an option to the multiselect with value -1 and label -Enter Manually-. In your query, do this: and (traderid in (@traderid) or (-1 in (@traderid) and traderid...
javascript,jquery,knockout.js,multi-select
You need to set the 'optionsValue' and populate it in your observable array. html: <select multiple="multiple" data-bind="options: optionValues, optionsValue: 'Id', optionsText:'name', selectedOptions: multipleSelectedOptionValues"></select> Knockout: var viewModel = { optionValues: [{name: "name1", Id: 1, fullname: "Development"},{name: "name2", Id: 2, fullname: "Development"},{name: "name3", Id: 3, fullname: "Development"}], multipleSelectedOptionValues: ko.observableArray([1,3]), }; ko.applyBindings(viewModel); I've...
c#,wpf,dependency-properties,multi-select
Try this... MultiSelectCombobox.xaml.cs public partial class MultiSelectComboBox : ComboBox { ... public static readonly DependencyProperty SelectedItemsProperty = DependencyProperty.Register("SelectedItems", typeof(IList), typeof(MultiSelectComboBox)); private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { ListBox lb = sender as ListBox; this.SelectedItem = lb.SelectedItem; this.SelectedItems = lb.SelectedItems; } } Keep in mind that this would only work for...
android,alertdialog,multi-select
I've looked into that problem too, and found no way to accomplish this without using custom adapter. Below the code which works. Here i create the ListView manually, and set a custom adapter for it. And then on every item click check for selected items. If there's no item selected,...
jquery,checkbox,match,multi-select
I got it working, but I don't understand why you need to do this? var $selectOptions = $('#dash option'); $('input[type=checkbox]').on('change', function () { var $checkbox = $(this), checked = $checkbox.prop('checked'); $selectOptions.filter(function () { var $option = $(this); return $option.val() === $checkbox.attr('data'); }).prop('selected', checked); }).trigger('change'); Here is a small demo: http://jsfiddle.net/MbHVB/8/...
I found the solution.I have used settimeout function and it worked. $(chamber).on('blur', function (e) { setTimeout(function(){ $("input[id='select29']").focus(); },100); ...
inner-join,union,multi-select,mysqli-multi-query
Get rid of your order by clauses in your subqueries. Also, post what the syntax error says....
You are almost there. First make sure you have the correct relationship defined in your project model public function users(){ return $this->belongsToMany('User'); } Now to get the ids of all assigned users: $assignedUserIds = $project->users()->lists('id'); And just pass that to the view......
The MultiSelector uses the Ext.util.Filter to narrow the results based on the typed text. You need to enable the anyMatch property for it to match anywhere. To do that, you'll have to include a new "search" function in your multiselector's search object that will have anyMatch=true. Please see my fiddle,...
ios,ios7,uitableview,multi-select
when entering edit mode, set a class property BOOL editMode = YES. then in didSelectRowForIndexPath check if editMode == YES and then do nothing to select more cells, if NO start your segue.
php,jquery,html,multi-select,jquery-multiselect
PHP requires that form control names end in [] if you are getting multiple values from the same name. <select multiple='multiple' name='mydropdown[]'> It doesn't matter if the reason for getting multiple values is multiple form controls with the same name, or a single select multiple element....
javascript,jquery,twitter-bootstrap,multi-select,livesearch
$('#friends').selectpicker('refresh'); Is necessary to update the newly added values, which I had missed....
javascript,jquery,ruby-on-rails,multi-select
Your problem is that every dropdown has the same ID, and IDs are intended to be unique. Change your select element so that author-choice is a class (class='author-choice') and change the jQuery selector to $('.author-choice'). If that still doesn't solve the problem, it's now SumoSelect's fault, and you'll have to...
jquery,jquery-ui,multi-select,nested-sortable
This might help you. If you want to see Fiddle nestedSortable working drag(multiple selected and molested child) and drop in to out of box. $().ready(function() { $('li').on('click', function(e) { e.stopPropagation(); $(this).toggleClass('selected'); }); var ns = $('ol.sortable, ol.moved').nestedSortable({ connectWith: 'ol.moved, ol.sortable', forcePlaceholderSize: true, handle: 'div', helper: function(e, item) { console.log('parent-helper'); console.log(item);...
You are missing a space: $("#my-multiselect :not(:selected)").length === 0 Because you want to select the options inside #my-multiselect element....
dojo,add,multi-select,dropdownbox
An example of operations with DOJO MultiSelect can be found here http://download.dojotoolkit.org/release-1.9.1/dojo-release-1.9.1/dijit/tests/form/test_MultiSelect.html Documentation at the following link: http://livedocs.dojotoolkit.org/dijit/form/MultiSelect...
You can get your desired output with this query: select ap.id_price , p.service , p.cost_1_1Kg , p.cost_4_1Kg , cost_8_1Kg , group_concat( concat('account ', ap.id_account) order by ap.id_account separator ', ' ) as descr from account_prices ap inner join prices p using (id_price) group by ap.id_price Result: | ID_PRICE | SERVICE...