cancel
Showing results for 
Search instead for 
Did you mean: 

Managing selection in tnt:NavigationList?

roland_bouman
Contributor
0 Kudos
554

Hi all,

I'm using the Navigation list and so far it works fine for me.

But now, I want programmatically manipulate the selection (set an item as selected, or unselect an item) and I'm lost.

Looking at the API documentation for both NavigationList and NavigationListItem,I simply cannot find anything that looks like I could use to change the selection. Can this be right?

View Entire Topic
saivellanki
Active Contributor
0 Kudos

Hi Roland,

Yeah you're right, it's not documented.

But when I debug the code, I see there is setSelectedItem method, which expects item as parameter.

Will this sample help? JS Bin - Collaborative JavaScript Debugging

Regards,

Sai.

roland_bouman
Contributor

Hi Sai,

Thanks! I'll check it out - much appreciated

Marco_DiPisello
Explorer
0 Kudos
Hi all,
Marco_DiPisello
Explorer
0 Kudos
Hi All, for me worked this.getView().byId('idNavigationList').mProperties.selectedKey = null;