Grid item updates [message #24945] |
Tue, 30 January 2007 06:13  |
Eclipse User |
|
|
|
Hello,
I'm facing a weird problem with the Grid widget. Whenever I change the
text or color of a GridItem the UI is not updated immediately, but it is
updated after calling redraw.
This sounds a little weird to me, because I never call redraw on all
other widgets to update the text or colors. I was looking at the code
but I don't see any "update trigger" when changing the text, nor I see a
method to redraw only the updated item. What am I missing ?
Bye
|
|
|
|
|
Re: Grid item updates [message #26652 is a reply to message #26569] |
Mon, 05 February 2007 12:25  |
Eclipse User |
|
|
|
Hi Marco,
Yes the Grid currently redraws the entire client area on every redraw.
But this will only draw rows in the visible range. So the number of
actual rows in the table shouldn't have much affect. How many rows do
you have?
-Chris
Marco Maccaferri wrote:
>
> On 30/01/2007 17:00 Chris Gross ha scritto:
>
>> You're not missing anything. Its a bug. There should be a redraw()
>> in the various GridItem setters. It will be fixed in the next update.
>
> I was asking because I'm experiencing some performance issues when Grid
> needs to handle a huge amount of items. From what I see redraw repaints
> the whole control (including the header, if I'm not wrong), so I was
> wondering if there was some method to redraw only the items that were
> updated.
>
> If you plan to work on it, I think that it should be a good idea to
> somehow flag the items that were updated and repaint only those.
>
> Bye
|
|
|
Re: Grid item updates [message #576242 is a reply to message #24945] |
Tue, 30 January 2007 11:00  |
Eclipse User |
|
|
|
You're not missing anything. Its a bug. There should be a redraw() in
the various GridItem setters. It will be fixed in the next update.
-Chris
Marco Maccaferri wrote:
> Hello,
>
> I'm facing a weird problem with the Grid widget. Whenever I change the
> text or color of a GridItem the UI is not updated immediately, but it is
> updated after calling redraw.
>
> This sounds a little weird to me, because I never call redraw on all
> other widgets to update the text or colors. I was looking at the code
> but I don't see any "update trigger" when changing the text, nor I see a
> method to redraw only the updated item. What am I missing ?
>
> Bye
|
|
|
Re: Grid item updates [message #577235 is a reply to message #25067] |
Sat, 03 February 2007 12:34  |
Eclipse User |
|
|
|
On 30/01/2007 17:00 Chris Gross ha scritto:
> You're not missing anything. Its a bug. There should be a redraw() in
> the various GridItem setters. It will be fixed in the next update.
I was asking because I'm experiencing some performance issues when Grid
needs to handle a huge amount of items. From what I see redraw repaints
the whole control (including the header, if I'm not wrong), so I was
wondering if there was some method to redraw only the items that were
updated.
If you plan to work on it, I think that it should be a good idea to
somehow flag the items that were updated and repaint only those.
Bye
|
|
|
Re: Grid item updates [message #577317 is a reply to message #26569] |
Mon, 05 February 2007 12:25  |
Eclipse User |
|
|
|
Hi Marco,
Yes the Grid currently redraws the entire client area on every redraw.
But this will only draw rows in the visible range. So the number of
actual rows in the table shouldn't have much affect. How many rows do
you have?
-Chris
Marco Maccaferri wrote:
>
> On 30/01/2007 17:00 Chris Gross ha scritto:
>
>> You're not missing anything. Its a bug. There should be a redraw()
>> in the various GridItem setters. It will be fixed in the next update.
>
> I was asking because I'm experiencing some performance issues when Grid
> needs to handle a huge amount of items. From what I see redraw repaints
> the whole control (including the header, if I'm not wrong), so I was
> wondering if there was some method to redraw only the items that were
> updated.
>
> If you plan to work on it, I think that it should be a good idea to
> somehow flag the items that were updated and repaint only those.
>
> Bye
|
|
|
Powered by
FUDForum. Page generated in 0.07810 seconds