When you call the #getSelection method, the table returns an array of objects describing the selected rows. The order of elements is the order in which they were selected, so you can take the last element in the array, and set the chart's selection to be just that element. See this example: http://jsfiddle.net/asgallant/a4WPZ/
On Friday, September 6, 2013 1:17:03 PM UTC-4, Pushpendra Singh wrote: > > Hi , > > I am using google > Table<https://developers.google.com/chart/interactive/docs/gallery/table> > visualization > and wanted to disable multiple row selection on a table.. > using shift key, i can very well select multiple row.. how to avoid this > and restrict the row- selection to only 1. > > regards > Pushpendra > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api. For more options, visit https://groups.google.com/groups/opt_out.
