|
I have an array of different elements stored from a previous selection, call it ' a '.
How do i then do another select from this previous selection ( a ) and just return elements of type input ?
Started by maxp on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Is ' + $(this).attr('name')); });
To just get a selection from the current selection this way:
var $inputs.
|
|
I want to have a element that displays in the multiple selection display style (it --the box instead of the drop down), but only allows you to select on thing at a time. Is that possible?
Started by Sam Lee on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
This will display a listbox-style select element that allows only one selected item at a time:
<select size="3"> <option>1</option> <option>2</option> <option>3< to the select element:
....
|
|
<script> var is_gecko = /gecko/i.test(navigator.userAgent); var is_ie = /MSIE/.test(navigator.userAgent); function insertNodeAtSelStart() { if(is_gecko) { var S = window.getSelection(); if(!S.isCollapsed) { var R = S.getRangeAt(0); var R1 = R.cloneRange...
Started by matthewk on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Presumably this is what are in the selection....
Since the insertion is unsuccessful the selection is not cleared.
Firefox clears the selection when you disturb it by successfully inserting the Node inside its: "..."]
on the insertNode call.
|
Ask your Facebook Friends
|
I have a ListBox control that I want to change into having a toggle selection. i.e. Click once on an item selects it, click again it deselects it. Also, clicking another item in the list should do the default action of deselecting the previous item and...
Started by Mark Ingram on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Use something like this:
Point newPoint = e.GetPosition(backgroundImage); HitTestResult....
I would keep the standard ListBox as that way you will keep the default behaviour you want, then for deselecting an item could you just handle it in the mouse down event? i.e .
|
|
I'm working on an import (from Excel) dialog that uses automation to allow the user to select ranges of cells for import. When the range is selected, I'm using the event sink to catch the event and hilight the first row and first column. I need to have...
Started by Steve on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Or you could store the cell address in a string variable as you suggested, which... .
I imagine you could replicate this object from where you are .
If you were working in Excel VBA, you could
Set Rng = Application.Selection
where Rng is an Excel Range object .
|
|
I've got a Windows Forms application with two ListBox controls on the same form. They both have their SelectionMode set to 'MultiExtended'.
When I change the selection of one the selection of the other changes.
Now I thought I'd done something stupid ...
Started by Greg B on
, 8 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Be careful.
That it stored also caries any binding or selection information over to the other ListBox.
|
|
The MSDN documentation for the SplitContainer controls says:
With the SplitContainer control, you can create complex user interfaces; often, a selection in one panel determines what objects are shown in the other panel.
So, I have a SplitContainer that...
Started by tsps on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If I select a message in the message list in Outlook.
What you're describing doesn't mimic Outlook.
|
|
I have a text box where I want to limit the number of selected items to MaxSelection. The desired behaviour is that once MaxSelection items are selected any futher selections are ignored. (Thus this question is different from " limit selections in a listbox...
Started by Robert Gowland on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Thanks to Lucero's insight that I could put the code to store the selection in another is the code:
/// <summary>....
Store the selection in other events (such as MouseDown or KeyDown) which are known to be triggered before a change.
|
|
I can quickly clear the selection of a ListView using its SelectedIndices.Clear method, but if I want to select all the items, I have to do this:
for (int i = 0; i < lv.SelectedIndices.Count; i++) { if (!lv.SelectedIndices.Contains(i)) lv.SelectedIndices...
Started by Simon on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
SLaks method will work for normal ListViews, but not for virtual lists since you .
To quickly select invert the selection.
You can just set the Selected property of the ListViewItem class.
In virtual mode.
|
|
If i have something selected in VIM in visual mode .... how can i duplicate that selection and place it below or above the selection.
Started by solomongaby on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Use y for yank (copy) the selection into a buffer
the p for paste the selection where you want it to be
Just hit 'y' to yank what you've got selected visually, the "p" to paste below the cursor or "P" to....
Line, then
p
to p aste.
|