.. _dojox/grid/example_Working_with_selections: Working with selections ----------------------- To get the current selected rows of the grid, you can use the method yourGrid.selection.getSelected(). You will get an array of the selected items. The following code shows an example: .. cv-compound:: .. cv:: javascript .. cv:: html
Select a single row or multiple rows in the Grid (click on the Selector on the left side of each row). After that, a click on the Button "get all Selected Items" will show you each attribute/value of the selected rows.
Title of Movie Year
Producer
get all Selected Items
.. cv:: css Grid 1.2 supports a new parameter "selectionMode" which allows you to control the behaviour of the selection functionality: 'none' deactivates the selection functionality 'single' let the user select only one item at the same time 'multiple' let the user selects more than one item at the same time 'extended' (default) *not sure, what's the difference between "multiple" and "extended"*