Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tooltip optimisation

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Feature Requests
View previous topic :: View next topic  
Author Message
floele



Joined: 04 Aug 2008
Posts: 22

PostPosted: Wed Jun 03, 2009 8:29 am    Post subject: Tooltip optimisation Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jun 03, 2009 9:03 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
floele



Joined: 04 Aug 2008
Posts: 22

PostPosted: Wed Jun 03, 2009 10:20 am    Post subject: Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Aug 31, 2009 2:01 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
floele



Joined: 04 Aug 2008
Posts: 22

PostPosted: Mon Aug 31, 2009 4:43 am    Post subject: Reply with quote

That's great, thanks Smile
I'll try it as soon as possible.
Back to top
View user's profile Send private message
floele



Joined: 04 Aug 2008
Posts: 22

PostPosted: Sat Oct 03, 2009 9:14 am    Post subject: Reply with quote

I finally got to testing it. It works nicely, thanks again Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group