multi-select

Two Way Binding on Multi-select WinForms Listbox?

走远了吗. 提交于 2019-12-06 04:33:00
I have a project where we are loading a multi-select listbox from a collection of objects. I have another entity object that has a collection that I want to bind to SelectedItems somehow. Is there any way to do this using object binding sources or some kind of binding source without writing code? Sure I can loop through the collection and get the selected items but I'd prefer to do it more cleanly with windows data-binding. Is this possible? Unfortunately you can't bind the SelectedItems (or CheckedItems in CheckedListBox)... I can't tell how many times I wished it were possible ! 来源: https:/

How to set the selected value of the ng2-select

◇◆丶佛笑我妖孽 提交于 2019-12-06 04:19:06
I am working on angular2 application, I have use the ng2-select for the multiselect dropdown. Its working fine while creating new entry. But when trying to implement same while editing I am not able to set the default selected values pulled form database . <ng-select [initData]="aminities" (data)="refreshValue($event)" [multiple]="true" [items]="items" [disabled]="disabled"></ng-select> export class EditProjectComponent { project: ProjectModel; routeParam: RouteParams; aminities: any; private items: Array<string> = ['Swimming Pool', 'Gymnasium', 'Lift', 'Power Backup', 'Landscaped Garden',

Is there a jQuery jEditable Multi-select plugin?

纵饮孤独 提交于 2019-12-05 23:15:45
I'm using the excellent jEditable plugin for some in-place editing on my page. There is one spot I need a multiple select element. Is there a jEditable plugin that allows me to do this? I've been trying to use the jEditable author's plugin API to create my own multiselect plugin, but no dice so far. There just doesn't seem to be quite enough documentation on what each function does in the API. And every single example plugin he provides appears to rely on other jQuery plugins. I just need a basic multiple select element... I made a small patch to Kalyan's suggestion that caused it not to work

How to access the values selected in the multiselect dropdown list in PHP?

两盒软妹~` 提交于 2019-12-05 17:05:04
I am using Jquery Multiselect Widget to have a dropdown list box with mulitselect option. I am populating the dropdown with the data from MySql database. I was not able to pass multiple values to the php file in $_POST. My HTML & PHP code for Multiselect DropDown. <form id="intermediate" name="inputMachine" method="post"> <select id="selectDuration" name="selectDuration" multiple="multiple"> <option value="1 WEEK" >Last 1 Week</option> <option value="2 WEEK" >Last 2 Week </option> <option value="3 WEEK" >Last 3 Week</option> </select>                 <?php //include '../db/interface/DB_Manager

SHift-click jqgrid multiselect missing last row

心已入冬 提交于 2019-12-05 16:12:15
I adopted the code from this post and made this fiddle . Try clicking the first row, then shift-clicking the last row. If you notice this code does very well, except the last row, the row that you click on, does not get selected. I have been scratching my head on this one. Can anyone help me alter the code so that the multiselect selects the last row too? Thanks! try replacing this: if ((shouldSelectRow = id == startID || shouldSelectRow)) { with this: if ((shouldSelectRow = id == startID || shouldSelectRow) && (id != rowid)){ Oleg I agree with Michael Gendin that you should not select the row

How can I hide/show options on the fly with bootstrap-multiselect?

旧时模样 提交于 2019-12-05 13:09:02
I am using bootstrap-multiselect to give the user great controller over two key menus. My first menu is called groups and other called queues . Each option in the queues has an HTML5 data attribute (i.e. data-group="X", where X is a group-value) When the user selects a option/group from the groups menu, I want to find and hide every queue/option in the queues menu where data-group is not equal to a selected group in the groups menu. After identifying the queues/items that needs to be hidden/showing, I tried to use .show() and .hide() extensions. Then I tried to use .addClass('hidden') and

jqgrid - checkbox for Group header to multiselect group items

痴心易碎 提交于 2019-12-05 09:16:08
问题 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

javafx8 TableView Multiselection returns one of the selected items as null

空扰寡人 提交于 2019-12-05 05:48:54
TableView multi selection returns one of the selected objects as null. This doesn't happen every time but happens most of the times when i try to select two rows in the table. similar to the issue defined in this question Best way of reproducing the issue is , try selecting two sequential rows . FXML : <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.control.Label?> <?import javafx.scene.control.ProgressBar?> <?import javafx.scene.control.TableColumn?> <?import javafx.scene.control.TableView?> <?import javafx.scene.control.TextField?> <?import javafx.scene.control.cell

Multi select using Jquery

半世苍凉 提交于 2019-12-05 02:38:45
问题 I am looking for an alternative to normal HTML multiple select with something more user friendly based on JQuery and easier to maintain and implement, any recomendations based on any experience with it would be quite helpful. I need something some thing like Multiselect I might have multiple multiSelect drop down's on a single page and the link which I have attached here would fail in that case. 回答1: My preferred one is chosen http://harvesthq.github.com/chosen/ 回答2: You can use http:/

Swift - Save checkmarks selected in TableView

倖福魔咒の 提交于 2019-12-05 02:21:02
问题 I am fairly new to Swift and I am having an issue on TableView multi-selection. I have multiple selections that I can check with a checkmark, similar to to-do list. When I check the items I want to be able to come back to the ListView and have my selections saved. I'm assuming that the code to keep this in saved state would go somewhere here? This is the class where the individual cell item checkmark is written : class ListItem: NSObject { let itemName: String var completed: Bool init