-1

i'm currently struggling how to deselect a item in list, when pressing the back button. So how can set the selection state when returning to the previous view.
Thanks in advance.
Cheers
Simon

Simon D.
  • 11
  • 2

1 Answers1

0

This will select the first item in the list. As lists allow multiple selections you need to pass an array. I am not sure how you deselect the list entirely.

document.getElementById("list").object.setSelectionIndexes([0]);
Vladimir
  • 170,431
  • 36
  • 387
  • 313
dcs
  • 1