Questions tagged [selectionchanged]
263 questions
4
votes
2 answers
listview.selectionchanged, can I make it fire everytime I click an item?
Is there a way to make the selectionchanged event fire every time a selection in the listview is clicked, instead of only when it changes?
For example, lets say i have a listview with only one object in it. The user clicks that object, and that…

user113164
- 1,437
- 5
- 17
- 17
3
votes
2 answers
JList: previous selected item
I have a JList and register a selection handler (ListSelectionListener).
Now I need to now the previous selected item/index.
Up to now, I save the last selected item on my own. Is there a better way to do so?
In other words: Is there are…

Marcel Jaeschke
- 707
- 7
- 24
3
votes
2 answers
CollectionView SelectionChanged method not triggering when tapping the item directly .NET MAUI
I'm creating a CollectionView in .net MAUI where i'm using Frame control inside the data template. As a result of that, when I tap directly on the item, the SelectionChanged method is not being triggered and will trigger only if I click on the frame…

Ali Alfaraj
- 207
- 3
- 12
3
votes
2 answers
WPF DataGrid Cancel Selection Change
I am working with WPF DataGrid in the MVVM manner and having trouble reverting the selection change from the ViewModel.
Is there any proven way to do this? My latest tried out code is below. Now I do not even mind investing on a hack inside the code…

Ε Г И І И О
- 11,199
- 1
- 48
- 63
3
votes
2 answers
How to cancel selectionChange event in angular material 2?
What i want is: if p1 or p2 is locked,the selected option remains unchanged;
But the code below works incorrect.The selected option still changed.
Can anybody gives me some advice?
html
…

Wenqi Xu
- 63
- 1
- 3
3
votes
2 answers
How to get a specific cell in a DataGridView on selection changed
With a listbox, I have the following code to extract the item selected:
private void inventoryList_SelectedIndexChanged(object sender, EventArgs e)
{
String s = inventoryList.SelectedItem.ToString();
s = s.Substring(0,…

Elie
- 13,693
- 23
- 74
- 128
3
votes
2 answers
Checking that value of ui elements has been changed
Is there any way to check that the ui elements(line edit,combo box,etc.) of the dialog has been changed.
What I want is to show a message to the user if he changes the value of any single ui element, saying that details have been partially…

krohit
- 792
- 1
- 7
- 26
3
votes
2 answers
Listbox SelectionChanged not working with Button in its ItemTemplate
Code below does not work when I select item in listbox, do you happen to know why?

Maximus
- 3,458
- 3
- 16
- 27
3
votes
3 answers
WPF - How To Tell What Raised The ComboBox_SelectionChanged Event
Is there any way to tell how the ComboBox_SelectionChanged event was raised in WPF.
That is, was the event raised as the result of a user interaction, or as the result of a change in the property it is bound to?

mattdlong
- 876
- 2
- 7
- 19
3
votes
2 answers
Which calendar event to consider when user selects same date
Am using link button to toggle the calendar.Ive used calendar.selection_changed event
to grab the date and i hide the calendar control.But if the user trys to select the same date again what event should i consider to grab the date and change the…

user1799214
- 511
- 2
- 11
- 25
2
votes
2 answers
Get notified when cursor position changed in Eclipse TextEditor
I am developing a plugin to eclipse and I want to add some actions to the context menu. But actually I wanted to prepare results beforehead according to the text selection in the editor and just show them when the menu item will be selected.
I…

Ritro
- 148
- 3
- 10
2
votes
2 answers
CollectionViewSource initialization raises listbox's SelectionChanged
May be I missed something, but I've already beat my head with this one.
I have defined CollectionViewSource:
and ListBox:

saqw3r
- 73
- 6
2
votes
1 answer
ADF Faces escape button doesn't trigger SelectionEvent for a SelectionListener af:table
Why doesn't escape button notifies me that the selection changed ? (to unselected)
I have some validation on SelectionListener and pressing escape is jumping over my validation. This is definitely not a normal behavior. I could do some JS when…

Cosmin Cosmin
- 1,526
- 1
- 16
- 34
2
votes
2 answers
Disable event bubbling on selectionchanged event- WPF
I have a listbox inside a listview. on Both of them I have selectionchanged event. When I fire child control event parent control fires automatically. I need to stop this behaviour.
Any hints?
Thanks!

WhoCares
- 25
- 1
- 6
2
votes
2 answers
show different item on selectionchange on a grid
i have a grid and a form, i need to show different items on the form each time we select a row on that grid
i ve been looking on how to do this, and found
Ext.getCmp('myform').hide() // or .show()
and
listeners: { selectionchange:…

Armance
- 5,350
- 14
- 57
- 80