Hi, I have one query regarding the adding tooltipmanager to ultragrid celltext instead of existing tooltip., the default tooltip appears in grid ,only when the cell text is completly not visible. Is it possible to make the tooltip manager's behaviour also same as that of the existing Typstyle?.Because when add tooltip manager it is appearing for each and every cell even it is completely visible to read,and would like to know is there anyway we can restrict the width of the tooltip when the celltext is too long so that the text will wrap itself?
Hi Charudatta,
Thank you for posting in our forums.
What you could do in your case is to get the cell text and the cell size and then measure whether or not the text fits the cell size. If it does - don’t show the tooltip, if it does – show it.
I have attached a sample which demonstrates this suggestion.
Please let me know if you have any additional questions.
Thanks Dimitar ,I would like to know is it possible to wrap the text of the tool tip so that long text can appear in multiline inside the tooltip.sometimes cell contain very long text and the tooltip of the same appears very long.
Your last reply puzzles me a bit. The original question is about using the UltraTootipManager and now you are saying that you are using the default tooltip without the tooltip manager. Which one is it?
Anyway, again for the cell, if your values has line breaks it can be displayed and wrapped on multiple lines. You need to set the CellMultiline property of the grid Override to true and set a high enough row height through the DefaultRowHeight property. Then if your values have new lines they will be displayed on several lines and the tooltip should reflect that as well.
Hi Dimitar,Thank you for your time ,sorry I made you confused.We are using both oultratiptoolmanager and default one in our project.
Would like to confirm from your side that there is no other way than wraping the text inside grid cell text ,to wrap the text inside tooltip?.
if I set cellmultilne property for grid cells which have longer text without break,will it work? It was not working when I tried.
Thank you for the reply.
I apologize, it seems that the information in my previous reply was wrong. The cell text can be wrapped automatically. What you need to do, is to set the CellMultiline property to True and then set the RowSizing property to AutoFree. Note that in this case the default tooltips won't show since the whole text of the cell will be visible.
I have attached a small sample which demonstrates this suggestion.
Hi Dimitar,Thanks for your inputs,my one issue is seems to be resolved .
As I have mentioned earlier if I am using a ultratooltip manager ,for the grid for which I am not using any multilne property ,is it possible to specify the maximum width of the tooltip manager?ie.whatever the size of the cell value ,the tooltipmanager should not be more wider than the specified width.
The UltraTooltipManager doesn’t have text wrapping functionality out of the box. When you set the TooltipText property of the UltraTooltipInfo object you will need to parse the text and add line breaks wherever needed so that the text will appear on several lines. Alternatively you can log a new product idea for this from our product ideas site.