View Issue Details

IDProjectCategoryView StatusLast Update
0001796NoesisGUIC# SDKpublic2020-09-24 16:36
Reporterai_enabledAssigned Tosfernandez 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.0.5 
Target Version3.0.6Fixed in Version3.0.6 
Summary0001796: Collection.Move doesn't keep the bound selected item
DescriptionHi guys,
As 0001550 is implemented now, I've tried Collection.Move with ListBox and ObservableCollection and noticed that it works now (no more "unsupported" message from NoesisGUI) but the bound selected item is getting changed.

I have a feeling that the selected item is linked to the SelectedIndex property somehow even though I'm using SelectedItem binding only.

E.g. I'm selecting an entry in position #3 in the ListBox. Then I'm moving some entries with Collection.Move and the selection index is still kept at #3 even though there is a different entry now.

Regards!
TagsNo tags attached.
PlatformAny

Activities

ai_enabled

ai_enabled

2020-09-23 21:18

updater   ~0006647

Unfortunately, a workaround is a problem as the SelectedItem change happens during the next Noesis.Update so it's not immediate and I cannot simply save the selected item manually, invoke Collection.Move, and then restore the selected item. Probably I could do this with a "invoke this after 1 frame" but it's a very unreliable approach.

Issue History

Date Modified Username Field Change
2020-09-23 21:16 ai_enabled New Issue
2020-09-23 21:18 ai_enabled Note Added: 0006647
2020-09-23 21:39 sfernandez Assigned To => sfernandez
2020-09-23 21:39 sfernandez Status new => assigned
2020-09-23 21:39 sfernandez Target Version => 3.0.6
2020-09-24 16:36 sfernandez Status assigned => resolved
2020-09-24 16:36 sfernandez Resolution open => fixed
2020-09-24 16:36 sfernandez Fixed in Version => 3.0.6