Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Grid item updates
Grid item updates [message #24945] Tue, 30 January 2007 11:13 Go to next message
Marco Maccaferri is currently offline Marco MaccaferriFriend
Messages: 147
Registered: July 2009
Senior Member
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 #25067 is a reply to message #24945] Tue, 30 January 2007 16:00 Go to previous messageGo to next message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
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 #26569 is a reply to message #25067] Sat, 03 February 2007 17:34 Go to previous messageGo to next message
Marco Maccaferri is currently offline Marco MaccaferriFriend
Messages: 147
Registered: July 2009
Senior Member
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 #26652 is a reply to message #26569] Mon, 05 February 2007 17:25 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 253
Registered: July 2009
Senior Member
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 16:00 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
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 17:34 Go to previous message
Marco Maccaferri is currently offline Marco MaccaferriFriend
Messages: 147
Registered: July 2009
Senior Member
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 17:25 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
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
Previous Topic:Implementing rowNumber in CompositeTable
Next Topic:Implementing rowNumber in CompositeTable
Goto Forum:
  


Current Time: Fri Mar 29 13:40:34 GMT 2024

Powered by FUDForum. Page generated in 0.03767 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top