#809 closed enhancement (done)
Selecting many items in a large ItemListView takes a long time
Reported by: | abeham | Owned by: | swagner |
---|---|---|---|
Priority: | medium | Milestone: | HeuristicLab 3.3.0 |
Component: | Data | Version: | 3.2 |
Keywords: | Cc: |
Description (last modified by abeham)
In !ItemListView_T.cs line 124:
removeButton.Enabled = false; if(itemsListView.SelectedItems.Count > 0) { removeButton.Enabled = true; }
should better be
if (itemsListView.SelectedItems.Count > 0) removeButton.Enabled = true; else removeButton.Enabled = false;
My assumption is that switching removeButton from disabled to enabled causes a GUI update every time an item is added to the selection. This can also be seen in the GUI.
I assume removeButton.Enabled = true doesn't fire a GUI update when it was enabled before, otherwise a check if (!removeButton.Enabled) should be added before enabling the removeButton.
Attachments (1)
Change History (6)
comment:1 Changed 15 years ago by abeham
- Description modified (diff)
comment:2 Changed 15 years ago by abeham
added a patch, tested it quickly in a workbench where I noticed the bug. Selecting multiple items now is much faster.
Please review
comment:3 Changed 15 years ago by swagner
- Resolution set to fixed
- Status changed from new to closed
Thanks. Applied the patch to HL 3.2 and HL 3.3 in r2558.
comment:4 Changed 14 years ago by swagner
- Milestone changed from Iteration 4 to Current
Milestone Iteration 4 deleted
comment:11 Changed 14 years ago by swagner
- Milestone changed from Current to HeuristicLab 3.3.0
Milestone Current deleted
prettified description