Re: CellList refreshed only after mouse move

2017-04-08 Thread Rob Newton
I have encountered this problem myself.  When the new data arrives, rather 
than updating the CellList/Grid immediately, defer the update until the 
current event loop has completed.  For example:

private static void setRowDataDeferred(
final DataGrid grid, final int start, final List<
Consign> values)
{
Scheduler.get().scheduleDeferred(new ScheduledCommand() {
@Override
public void execute() {
grid.setRowCount(values.size(), true);
grid.setRowData(start, values);
}
});
}




-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CellList refreshed only after mouse move

2017-03-23 Thread Thomas Broyer


On Thursday, March 23, 2017 at 3:54:56 PM UTC+1, pH4Lk0n wrote:
>
> This problem still exists in GWT 2.8.0.
>
> I've got similar problem. I just want to select record that is clicked 
> elsewhere but user needs to move mouse to see this effect.
> It's unusable right now in this scenario because it seems application work 
> sluggish.
>
> Is there any workaround this problem??
>

Cell-widget changes are scheduled using Scheduler#scheduleFinally.

I'd say you're probably calling GWT code from a JSNI and you didn't wrap 
your callback function into $entry(). $entry() ensures scheduleEntry and 
scheduleFinally work as expected, and also routes exceptions to the 
GWT.UncaughtExceptionHandler (if there's one).

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: CellList refreshed only after mouse move

2017-03-23 Thread pH4Lk0n
This problem still exists in GWT 2.8.0.

I've got similar problem. I just want to select record that is clicked 
elsewhere but user needs to move mouse to see this effect.
It's unusable right now in this scenario because it seems application work 
sluggish.

Is there any workaround this problem??

Best regards




W dniu niedziela, 29 maja 2011 19:37:47 UTC+2 użytkownik mitel napisał:
>
> Hi, 
> I'm doing some tests using realtime message push from different 
> providers (Beaconpush, PubNub) and I want to render the received 
> messages 
> as soon as they hit the client. I'm using a callback that updates a 
> ListDataProvider ( getList().add(pushedMessage) ). 
> The message is received, as I can see it in my logs , the model is 
> updated - I do a dataProvider.refresh(). 
>
> The strange thing is that the received message is rendered in the 
> browser only after a mouse move inside the browser window. 
> If I keep moving the mouse around, the pushed messages come in real 
> time. 
>
> What would be the workaround to render the information without 
> touching the mouse? I tried cellList.redraw() inside the callback 
> after 
> each message is received but doesn't help. 
>
> Thank you

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.