NA
unread,Jan 18, 2012, 3:26:31 PM1/18/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Hi,
I have Tables displaying data from a DataTable that is updated
periodically. In my table options, I have:
wrap.setOptions({
allowHtml:true
,sortColumn:1
,sortAscending:false
,page:'disable'
});
The sort works fine, and when the data in the DataTable is updated and
the MyWrapper.draw() method called, the Table updates properly,
maintaining correct sort order.
But if I add a bar formatter to column 1, the sorting works when the
table is initially displayed but does not work after updates to the
table are made. Even resetting the options using:
wrap.setOption('sortAscending',false);
wrap.setOption('sortColumn',1);
didn't work. It seems as if the sort method is looking at the data in
the bars, not at the actual values.
Furthermore, the bar formatter isn't applied to rows added to the
table.
In fact, I ran a few other tests and it seems as if the bar formatter
just doesn't work properly when the underlying DataTable is updates.
Can someone confirm? I'm not sure if this is a new bug or not, as I
just began testing this feature a few minutes ago...