Closed sperry1625 closed 4 weeks ago
I was able to figure out the issue. The problem with the Nav control is the ItemKey
must be Text. It cannot be numeric. I would still classify this as a bug because keys are usually numeric for performance reasons.
Is this working by design?
Thanks for following up @sperry1625, we'll update documentation to make this clear. It is by design, the component looks for a specific data type, however the platform doesn't seem to give a good error message that lets you know it's not working. I'll log this as internal feedback as well so the team is awar.
Describe the bug Cannot select a default item for a Nav control.
To Reproduce Steps to reproduce the behavior:
SelectedKey
property (ex.ctxSelKey
)SelectedKey
property to variable,ctxSelKey
ctxSelKey
, to default key valueExpected behavior With
SelectedKey
variable set to a default key, when Nav is shown the Item with the Key value = to theSelectedKey
value will be selected. If this is not how this is supposed to work, please provide an example showing how to set the default selection in a Nav control.Screenshots N/A
Additional context I tried creating an
InputEvent
forSetFocus
,SetFocusOnRowSetSelection
andSetSelection
. The documentation only shows that the Nav Control supports theSetFocus
InputEvent
. None of these worked.AB#951