You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Cannot select a default item for a Nav control.
To Reproduce
Steps to reproduce the behavior:
Add Nav control to screen
Create variable to use for SelectedKey property (ex. ctxSelKey)
Set Nav control SelectedKey property to variable, ctxSelKey
Set variable, ctxSelKey, to default key value
Expected behavior
With SelectedKey variable set to a default key, when Nav is shown the Item with the Key value = to the SelectedKey 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 for SetFocus, SetFocusOnRowSetSelection and SetSelection. The documentation only shows that the Nav Control supports the SetFocusInputEvent. None of these worked.
AB#951
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: