View previous topic :: View next topic |
Author |
Message |
floele
Joined: 04 Aug 2008 Posts: 22
|
Posted: Wed Jun 03, 2009 8:29 am Post subject: Tooltip optimisation |
|
|
Hi,
currently, you have to set tooltip data within OnGetCellData(). This works, but it may be inefficient. For example, if you load additional data from the database for a tooltip, and you scroll through the list, you perform a huge amount of database queries. In fact, however, you would only have to perform a query if the user actually moves the mouse over an item.
Would it be possible to add some kind of method like OnGetCellTooltip() which gets only called when a tooltip is going to be displayed?
Regards,
Florian |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jun 03, 2009 9:03 am Post subject: |
|
|
If you are getting the tooltip from the same table (query) as the actual cell text then the extra overhead is likely to be negligible. If you are generating another query to get the tooltip information then I can see this may be an issue. Have you actually measured and seen that this is a bottle neck for your application? We could certainly look at this if it is really a bottleneck. _________________ Infralution Support |
|
Back to top |
|
|
floele
Joined: 04 Aug 2008 Posts: 22
|
Posted: Wed Jun 03, 2009 10:20 am Post subject: |
|
|
The cell text does not require a query (content is in memory as list of objects), but the tooltip does. And yes, while it is not a "bottle neck" it noticably slows down the scrolling within a list. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Aug 31, 2009 2:01 am Post subject: |
|
|
We have just released version 3.13.0 of Virtual Tree that includes a new GetToolTipCellData event to address this issue. This event is fired just prior to tooltips being displayed and gives you a chance to set the Tooltip data dynamically. _________________ Infralution Support |
|
Back to top |
|
|
floele
Joined: 04 Aug 2008 Posts: 22
|
Posted: Mon Aug 31, 2009 4:43 am Post subject: |
|
|
That's great, thanks
I'll try it as soon as possible. |
|
Back to top |
|
|
floele
Joined: 04 Aug 2008 Posts: 22
|
Posted: Sat Oct 03, 2009 9:14 am Post subject: |
|
|
I finally got to testing it. It works nicely, thanks again |
|
Back to top |
|
|
|