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?