Try to use removeWidget(index of widget) at the beggining of update
DataTable code and after it, just draw it again. Of course it is not
very good solution but it works for me.
example: i coded:
int j = dialogPanel.getWidgetCount();
for(int i = 0; i < j; i ++)
{
if (dialogPanel.getWidget(i) instanceof (PieChart)
{
dialogPanel.removeWidget(i);
//some code here...
//draw the updated widget here
}
}
On 12 янв, 23:23, yc <[email protected]> wrote:
> Hello,
>
> How do I dynamically update an AnnotatedTimeline in the GWT
> Visualization toolkit? I changed its underline DataTable but the
> chart was not refreshed automatically after the change. I noticed
> that the redraw() function in the JavaScript API but didn't see the
> same redraw function on the Java side. What am I missing?
>
> Thanks,
> yc
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.