listview selection..using javascript and HTML RRS feed

  • General discussion

  • how to store selected items which are in  in listview when selection mode is set to "multi"......and want to display those selected items after clicking button..............
    Monday, April 29, 2013 10:38 AM

All replies

  • not 100% sure on what you mean, but if you want to create an array of the selected items, you can access the listview's selection property (http://msdn.microsoft.com/en-us/library/windows/apps/hh872204.aspx)


    listview.selection.getItems().done( function (items) {
       // items now contains an array of the selected items
       // so now you can itterate over them for example, and do something with them
       items.forEach(function (item) {
          //do something with the item

    Monday, April 29, 2013 11:49 AM
  • Thanks for reply Andy,PLz find bellow screenshots for better understanding.........in screenshot1 i am selecting multiple items...in screenshot2  i want to display selectd items............
    Monday, April 29, 2013 12:41 PM
  • hi andy,plz give reply..............
    Tuesday, April 30, 2013 5:16 AM
  • I have suggested an approach in link. Please have a look and let us know if you need further info.

    - Girija

    Wednesday, May 1, 2013 11:10 PM