Problem with paging control of google.visualization.Table

72 views
Skip to first unread message

Shuhao

unread,
Jan 10, 2013, 11:36:42 AM1/10/13
to google-visua...@googlegroups.com
The paging control doesn't seems to work for me. Any idea why that would happen? Here's the code to draw the table:

      table.draw(datatable, {allowHtml: true, page: true, pageSize: 50})

The page control is there, the table draws fine and the sorting is fine, but the pressing next page doesn't work.

asgallant

unread,
Jan 10, 2013, 12:53:40 PM1/10/13
to google-visua...@googlegroups.com
Set the "page" option to "enable", not true.

Shuhao

unread,
Jan 10, 2013, 1:12:52 PM1/10/13
to google-visua...@googlegroups.com
Thanks! That worked.

Also do we know how to make sure that sorting puts the values with null
at the bottom of the table no matter which direction you sort (or at
least make its value to be +inf and rather than -inf as currently stands)

Thanks,

Shuhao

asgallant

unread,
Jan 10, 2013, 4:02:25 PM1/10/13
to google-visua...@googlegroups.com
You would have to implement custom sorting instead of the default sorting.  Set the "sort" option to event to have the API throw a "sort" event when a user clicks the header instead of sorting the table.  If you use this, you will have to perform all sorting manually and redraw the table with the newly sorted data.
Reply all
Reply to author
Forward
0 new messages