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.
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.
Thanks, i will check out and get back to you. have a good day!
Boris,
I am facing an issue while trying to implement your code in my application.
in the below event,
private
{
if (GetHeader(e.Element) is HeaderUIElement)
{header = (
HeaderUIElement)e.Element.GetAncestor(typeof(HeaderUIElement));
ultraToolTipManager1.HideToolTip();
timer.Stop();
timer.Start();}
{ ultraToolTipManager1.HideToolTip(); }
Even if my mouse is over, I am not getting the UIElement as HeaderUIElement rather it is just UIElement and so i am not able to enter the IF - loop.
I have designed my grid layout by "Manually define the schema" option in the grid designer and added column names manually.
Kindly advise. Thanks.
It is hard to tell from the above code snippet, so I will be happy to take a look at a project of your own where you want this code to take action.
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.