ydn-js origin

YUI version 2.5.1

Multiple row select/deselect on simple click

Challenge

Create a selection model whereby clicking on a row will select the row in addition to other selected rows, or deselect it if already selected. This is supported by default onEventSelectRow, but requires the user to hold the CTRL/Cmd key during the click.

Solution

Subscribe to the rowClickEvent with a custom select method.