Find the page number of a record from google.visualization.Table

60 views
Skip to first unread message

Shuhao

unread,
Jan 13, 2013, 7:17:08 PM1/13/13
to google-visua...@googlegroups.com
Is there a way to find the current position of a record from google.visualization.Table and switch that page?

asgallant

unread,
Jan 13, 2013, 9:15:27 PM1/13/13
to google-visua...@googlegroups.com
You can filter the DataTable/DataView used to draw the table to find the row index of the record, and then math out what page it is on in the table.  If the table has been sorted, however, you will have to call the table's getSortInfo method to map the DataTable row index with the display row index.  Call the table's draw method, passing in the page of the record as the "startPage" option to navigate to the appropriate page.
Reply all
Reply to author
Forward
0 new messages