This is getting more complicated than I thought lol. My desired behavior is as follows: * Click on unselected row -> add that row to the selection of rows, highlight it * Click on selected row -> remove that row from the selection of rows, unhighlight it, leave other selected rows as selected. * The selected rows are then compared in a pie chart.
By using your snippet, modified a bit, I'm keeping track of the rows and getting them in the pie chart. By doing a table.setSelection(null) after each row click, I make sure that I can both add and remove the row from the pie chart. The problem with this is that I have no visual feedback in the table. Is there then an easy way to just color all the rows in a list? Perhaps by CSS? On May 21, 12:22 pm, ChartMan <[email protected]> wrote: > Thanks. Good point :) > > My snippet does not handle this case at all. However, what is the desired > behavior? Do you want that row to be added, removed, clear selection or > else? > On May 21, 2012 4:47 PM, "asgallant" <[email protected]> wrote: -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
