multiselect

Settings bundle - PSMultiValueSpecifier - multi select

Hi all, Is it possible to select more than one value using PSMultiValueSpecifier at settings bundle? ...

How do I figure out which items' selected state was changed in a DataGridView?

I have a DataGridView that has MultiSelect turned on. When the SelectionChanged event is fired, I'd like to know what items were newly selected and which items were newly deselected. For instance, if you have multiple items selected (by Ctrl-clicking) and then you release the Ctrl key and select a single item, I'd like to know which it...

How do I mimic Windows Explorer multi-select/drag-n-drop behavior in a DataGridView?

I'm trying to mimic the way Windows Explorer handles multiple selection. In a default DataGridView, you can select multiple items using Ctrl-click. But if you release the Ctrl key and then try and drag/drop the selected items, it clears the selected items and only selects the "hit" row. I found the following solution somewhere online....

How can I get the value of all the selected cells in a DataGridView?

I have a DataGridView that has MultiSelect = true. After the user selects different cells from different rows how can I get the value of all the selected cells? is it using a foreach() or a simple build in method? ...

asp.net mvc strongly typed view model with multiselect

Hi, I would like to know how i can bind my form values to my strongly typed view from a MultiSelect box. Obviously when the form submits the multi-select box will submit a delittemered string of my values selected...what is the best way to convert this string of values back into a list of objects to attach to my model to be updated? p...

C# ListView with CheckBoxes, automatic checkbox checked when multi select rows

I'm using a ListView control with multirow and fullrow select on. When I'm selecting multiple rows at once, some of my rows magically become checked. This happens when dragging the mouse over and also when selecting one, and shift clicking another. See image describing issue here: What in the grapefruit is going on? Anyone? ...

jQuery MultiSelect , how to get information about selected options

I have a problem , i know only the basics of jQuery , and i need to get the information with JavaScript about selected options from the list , i wasted 2 days searching for a good method , but without success , please help ... script of MultiSelect is here link text , I need only to get the title of selected option and numbers of select...

asp.net mvc multiselect remember state after postback

Hi, I am using the DataAnnotations for error checking on my asp.net mvc app, I am also using strongly typed ViewModels too. My error checking is working fine and is posting back to my view with error messages if a field is blank. However i have a MultiSelect / Listbox on my form which i need to remember it's state after an error. At t...

Multiselect list not showing selected items in c# mvc using linq2sql

I've tried many different ways to pass the selected items to the multiselect list with no luck. Finally, I tried this, which I think should display all the items as selected and still nothing in the list is selected. public MultiSelectList Companies { get; private set; } Companies = MulitSelectList(subcontractRepository.SubcontractCom...

Method to Allow User to Select Multiple Items - ASP.Net MVC

Hello, I have an e-commerce system that allows a product to have multiple categories. In the admin user interface, I'm going to allow the administrator to be able to add as many categories to the product as he would like. What are some good ways to accomplish this? I don't want to do a select-list where the user has to hold down the cont...

Why isn't multiselect list showing selected items? MVC

I moved on and then came back to this, but I am still unable to get it to work. var companiesList = subcontractRepository.SubcontractCompanies(Subcontract.subcontract_id); IEnumerable<Guid> selectedList = companiesList.Select(a => a.Id); Companies = new MultiSelectList(companiesList, "Id", "Name", selectedList); ...

Saving data from MultiSelectList in Edit and Create Views

I have 3 tables: Companies, Subcontracts, and CompanyToSubcontract The CompanyToSubcontract table is the guid of the Company and guid of the Subcontract. I have a MultiSelectList on the Subcontract Edit and Create views where the user can select multiple companies. I finally got it working where it displays the correct companies as se...

How to use javascript or jQuery to quickly select a preset of multi-select listbox items?

So say my page has a list of indexes '1,3,4,5,9,12' and a multi-select listbox with 12 items in it. What's a fast way to use javascript to tell the listbox to multi-select all items at those indexes? How would this be done using jQuery? So for example if the user selects the 'caramel' preset associated with the 'candybar' listbox, it ...

Appending options to a select, using jQuery, resizes it?

In this small, but full example, I am trying to recreate a dual list box UI component. I simply wish to be able to move items from one box to another. (Would be nice if I could add sorting, but one hurdle at a time I think!) I am getting a problem with this code in IE7 (FF, Chrome, Opera all seem to work fine). Whenever I move items f...

Data validation for multiselect ListBoxes in Silverlight

I have a ListBox with SelectionMode set to Multiple. I'd like to add special data validation to the control so that if you select all of the items, the ListBox gets the red border and has a "You cannot select all of the items" error message. I was able to get it to work--but it's a hack. I'm hoping there's a cleaner way to do this. Here...

Preselecting values in mulitselect with jQuery

I have a set of values that are present on the page loading: eg [1193,1184,2372]. I have a dropdownchecklist which can take a single value like so $(".ddl").dropdownchecklist().val(1193); When I rebind the dropdownchecklist this selects the value correctly. However I've tried passing my array containing multiple values to the val() met...

OpenFileDialog for selecting more than 1 file with WPF

How can I implement an openfiledialog, which is able to do multiselecting? Do I need an extra libraray or is it also possible with the WPF-Control OpenFileDialog? ...

Quick way to clear all selections on a multiselect enabled <select> with jQuery?

Do I have to iterate through ALL the and set remove the 'selected' attribute or is there a better way? ...

jQuery change event on select isn't being triggered via other function changing selected attribute

HTML <select multiple="multiple" id="myID" name="myName"> <option value="blue">blue</option> <option value="red">red</option> <option value="green">green</option> </select> jQuery: $('select') .change(function(){ alert("Change Event Triggered On:" + $(this).attr("value")); }) That, as is,...

Alternative to onChange or onBlur in jQuery dropdownchecklist control

Currently using the jquery dropdownchecklist found here: http://dropdown-check-list.googlecode.com/svn/trunk/src/demo.html I'm doing some pretty heavy processing of a large quantity of data on the client with a number of dropdownlists. Essentially, and put very simply, as each dropdown changes the data in each is filtered. I'm using the...