multi-select

Magento: textbox instead of multi select in layered navigation

本小妞迷上赌 提交于 2020-01-14 06:30:12
问题 Is there a possibility in Magento to have a multi-select attribute, for which I would use a textbox in layered navigation instead of showing all items from multi-select? I have an attribute where I will have hundreds of options and need to use it in layered navigation. When customer uses invalid value, an error should show up. Edit: After the help from FlorinelChis I have folowing code in filter.phtml: <ol> <?php foreach ($this->getItems() as $_item): ?> <?php $attributeModel = $this-

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

*爱你&永不变心* 提交于 2020-01-13 02:45:10
问题 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

Multiselect Box with Optgroups: Select one per group

可紊 提交于 2020-01-12 07:50:12
问题 I have a selectbox with the multiple attribute set. I'm also using <optgroup> tags to separate categories within my select box. I'm looking for a way, using either javascript or jQuery, to have the various options within each group to behave with 'radio button logic' rather than 'check box logic'. For example: <optgroup label="cat1"> <option>item 1.1</option> <option>item 1.2</option> </optgroup> <optgroup label="cat2"> <option>item 2.1</option> <option>item 2.2</option> </optgroup> User

Cross-ListBox Selects in a Nested ListBox WP7 App

流过昼夜 提交于 2020-01-07 05:36:10
问题 A known "issue" with nesting ListBoxes in a Windows Phone 7 App is that for each parent category their respective child ListBox retains its own SelectedItems list. Well, I have a situation where this is expected behavior, but I'm having issues capturing both the Parent and Child ListBox selected lists. Current Functionality: 1. List item 2. List item 3. Loading of Parent and Child ListBox data is working 4. Multi-select of Parent ListBox items works prefectly 5. Multi-select of Child ListBox

How to pass backend data to display as multiselect dropdown items (Jsfiddle attached)

坚强是说给别人听的谎言 提交于 2020-01-07 05:24:10
问题 This is with reference to fiddle link -->> https://jsfiddle.net/etfLssg4/ As you can see in the fiddle, user can select multiple dropdown items. The dropdown values have been selected during initialization. Lisa and Danny are the default items selected. it gets displayed at the dropdown bar as shown in fiddle. The default values is set by this line of code. $scope.example13model = [items[2], items[4]]; Now the scenario is as follows. The backend data is passed to front end via string. it is

Add to kendoMultiSelect

亡梦爱人 提交于 2020-01-07 04:43:30
问题 With the new kendo multiselect how would I add options to the list and make them selected? For instance if I have a dropdown containing: 1,2,3 and I wanted to add 4 and 5 how do I do that? Do I have to destroy the multiselect, add the options and then reinit the multiselect? 回答1: Given the following multiselect definition: var data = [ { text: "Africa", value: "1" }, { text: "Europe", value: "2" }, { text: "Asia", value: "3" }, { text: "North America", value: "4" }, { text: "South America",

Add to kendoMultiSelect

≡放荡痞女 提交于 2020-01-07 04:43:11
问题 With the new kendo multiselect how would I add options to the list and make them selected? For instance if I have a dropdown containing: 1,2,3 and I wanted to add 4 and 5 how do I do that? Do I have to destroy the multiselect, add the options and then reinit the multiselect? 回答1: Given the following multiselect definition: var data = [ { text: "Africa", value: "1" }, { text: "Europe", value: "2" }, { text: "Asia", value: "3" }, { text: "North America", value: "4" }, { text: "South America",

Saving selected multiSelectList items back to the model

放肆的年华 提交于 2020-01-07 01:48:09
问题 I am working on a site where I have a MultiSelectList of categories. Each item can belong to multiple categories, and obviously each category can have many items. I have it selecting the correct items in the dropdownlist in my view. But once I save, I can't figure out how to save the selected items back into the model. Here is my model: public class WebItem { public string ImId { get; set; } public string itemRef { get; set; } public string name { get; set; } public string Image { get; set; }

how to select multiple checkboxes in ionic

梦想的初衷 提交于 2020-01-05 09:09:29
问题 I am using ionic framework for my app development and want to select multiple checkboxes on click of header checkbox or button. <ion-list> <ion-checkbox ng-model="filter.color">Colors</ion-checkbox> <ion-checkbox ng-model="filter.blue">Red</ion-checkbox> <ion-checkbox ng-model="filter.yellow">Yellow</ion-checkbox> <ion-checkbox ng-model="filter.pink">Pink</ion-checkbox> <ion-checkbox ng-model="filter.number">Number</ion-checkbox> <ion-checkbox ng-model="filter.one">1</ion-checkbox> <ion

multiselect.js refresh after change

天大地大妈咪最大 提交于 2020-01-05 07:48:54
问题 Just trying to use multiselect.js for multiple type select input's Here is what select looks like <select multiple="multiple" id="my-select" name="my-select[]"> <option value='elem_1'>elem 1</option> </select> Using multiselect like this - var s = $('#my-select'); s.multiSelect({ selectableHeader: "<div class='custom-header'>Options</div>", selectionHeader: "<div class='custom-header'>Selected</div>" }); Here is what it looks like --> http://jsfiddle.net/6k8gW/5/ This work's fine until i try