Hi,
I've loaded a Table that has enough rows that it creates a scroll bar.
I'd like to programmatically set one row to appear selected, and I'd like
to do something to make sure the selected row is being shown by the Table.
I know enough to keep my column null, like this:
gGoogleTable.setSelection('[{row: 100, column:null}]');
I've tried it before the draw:
gGoogleTable = new
google.visualization.Table(document.getElementById('table_div'));
gGoogleTable.setSelection('[{row: 100, column:null}]');
gGoogleTable.draw(gGoogleData, {width: '100%', height: '200px'});
google.visualization.events.addListener(gGoogleTable, 'select',
selectionChangedTable);
I've tried it after the draw:
gGoogleTable = new
google.visualization.Table(document.getElementById('table_div'));
gGoogleTable.draw(gGoogleData, {width: '100%', height: '200px'});
google.visualization.events.addListener(gGoogleTable, 'select',
selectionChangedTable);
gGoogleTable.setSelection('[{row: 100, column:null}]');
No console errors but no joy either. Any suggestions?
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/cb2dc2ac-62b5-4860-901a-02432f563fe1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.