Hi,
Use the
ListView.selection and in that use the set method. You can pass index array to it, items or keys. For more information on the SET method have a look at this
link
I did try that once and here is a sample code of setiing the index by passing array of index:
var listview = document.body.querySelector(".myListview").winControl;
var arraySelectedIndex = [2,4,6,7,10];
listview.selection.set(arraySelectedIndex);
Hope this helps..
- Girija
Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria