Hello,
I am thinking of a functionality to implement in ultrawind. I want to add a tool tip for each colum header to provide a brief description about each column using the "Key" of columns.could any one tell me how i can do it.
Thanks.
Could you please review the sample attached to this post and see if it meets your requirements.Please feel free to let me know if I misunderstood you or if you have any other questions.
Thanks,i will try this out and let you know.
But it seems what i need which is "on mouse hover over a column, a brief description of the column should be displayed as tooltip"
Thanks for your immediate response.
So my sample is pretty close to what you need and not exactly like it. You might probably want to define a bool and set it to true when in 'HeaderUIElement' and false on 'else'. Then check if the bool is true when handling 'MouseHover' event and initialize, set and show the tooltip. When false, hide the tooltip. If you want of course I can create another sample with your requirements.
Please do not hesitate to contact us if you need any additional assistance.
You are awesome.
If you can, could you please create another example fitting to what i told and post.
Thanks, sorry for the trouble.
Thanks a lot.
Thank you, no worries.
I have taken some time to research this and came to the conclusion that 'MouseHover' event might not suit your needs because it fires only one time if mouse remains stationary in the control. And to fire the event for a second time you would have to leave the bounds of the control with the mouse and then enter again.
So if your requirements are to show the tooltip not immediately but after a one second for example you could use a 'Timer'. I slightly modified my previous sample and attached it to this post for you, please review it and see if it meets your requirements. Feel free to let me know if this behavior is not the required by you.
Thank you for the code sample provided, I believe that the other community members could benefit from it.
Please feel free to let me know if a question about our toolset comes up on your mind.
Hi Boris,
Thanks for your help.
Btw for width issue, i wrote the following code. it may not be perfect but it helps.
string
Col = "assign your tooltip text here";
int interval = 40; //set width as you require
for (int i = interval; i < Col.Length; i += interval)
{
while (Col[i] != ' ' && i < Col.Length && i != Col.Length - 1)
{ ++i; };
Col = Col.Insert(i,
"\n");
}
info =
newUltraToolTipInfo(Col, Infragistics.Win.ToolTipImage.Info,"More info on " + header.Header.Column.Key, Infragistics.Win.DefaultableBoolean.True);
After some research, the "Ability to change to size of the balloon tooltip" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI12030066.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
Thanks Boris,
The code that you had shared worked fine in my form (But did not work in other form- strange! and i tweaked the code and made it work there also) . I have one question though.
There are cases in which i wanna restrict the size of baloon of the tool tip. is it feasible?
How can i do it?
Thanks a lot
Yes, I might have not expressed myself clearly enough. So I will wait for the demo project(in fact that type of project I expected, not your entire project, only an isolated sample). The code really should work in your project also, so I will investigate it for you, when you attach it.