Programatically setting selection of ListView displaying grouped data RRS feed

  • Question

  • I'm displaying grouped data created by WinJS.Binding.List.createGrouped.

    The groups are created from very basic items like: { key: 1, title: 'foo' }

    Now I would like to programatically set the selection of the ListView to an item, knowing only they value of key (1 on this case). Since ISelection.set takes an index (or a key) I don't know how to map key=1 to an index that corresponds to the correct item. Any suggestions?


    Monday, November 5, 2012 10:48 AM

All replies