Open sperry1625 opened 1 year ago
I still believe the above is a bug and the Selected
property should not be cleared, but...
I fixed this issue by creating an InputEvent
, $"SetFocusOnRowSetSelection{Text(Rand())}"
, for the Detail List so it reselects the record that was previously selected.
Describe the bug I have an application that has a Command Bar, Navigation Control and a DetailList.
Selecting an item from the Nav on the left filters the items that show in the
DetailList
. The Edit and Activate command items in the Command Bar are only enabled if there is an item selected in theDetailList
. I use the following for theItemEnabled
property for theDetailList
Items:!IsBlank( detlstItems.Selected )
. That has always worked. What is happening is when I select the Activate command it makes some updates, including changing some properties in the underlying collection for theDetailList
. The result is, even though a record is still selected, thedetlstItems.Selected
property is nowBlank()
. You can see in the below image, the item is still selected but the two CommandBar menu items are disabled. Why is thedetlstItems.Selected
property getting cleared?To Reproduce Steps to reproduce the behavior:
CommandBar
buttons that makes changes to the underlying collection for theDetailList
.Expected behavior If there is a selected record in the collection the
Selected
property for theDetail
List should not beBlank()
.Screenshots
Additional context N/A
AB#947