DevExpress/DevExtreme

FileManager: change selection event raised on dir change is indistinguishable from the human-made one

vyshkant opened this issue · 2 comments

onSelectionChanged is currently raised in two different cases:

  1. when the actual human user changes the selection by clicking a row or a checkbox
  2. when uses performs actions on changing directory, without actually deselecting any rows

these two cases are currently indistinguishable one from another, so there's no way to understand "does user actually change the selection" or "is user just changing dir"

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

You are right, the FileManager component does not distinguish what action led to triggering the onSelectionChanged event. As a possible solution, you can set a flag in the onDirectoryChanged event handler and then check this flag in the onSelectionChanged event handler.
If this is not a suitable solution, please submit a support ticket in our Support Center and describe your ultimate goal in greater detail. Use the following link to submit a ticket: https://devexpress.com/ask