Replies
Mike,
You said
[quote user="[Infragistics] Mike Saltzman"]
Well, if you use the ShowToolTip method, then the tooltip will show up immediately.You could use a Timer to introduce a delay, I suppose.
Another option would be to change the ToolTip on the control based on the location of the mouse. You would do this using the UltraToolTipManager.GetUltraToolTip method. And then you can set properties on the UltraToolTip settings for that control. This way the UltraToolTipManager would handle the delay for you.
[/quote]
It worked but I get a tool tip to show ONLY the first time I enter a cell in that Grid. After that the only way to make the tooltip show is to either hover over outside that Grid and re-enter. Another way (little weird) is to click on another row in the same Grid and then hover over some cell. Those are these only two casesThe debugger tells me the MouseEnterElement handler is being invoked each time I hover over to a new cell.
On MouseEnterElement:
this.ultraToolTipManager1.InitialDelay = 500;
Infragistics.Win.UltraWinToolTip.UltraToolTipInfo toolTipInfo = this.ultraToolTipManager1.GetUltraToolTip((UltraGrid)sender);
toolTipInfo.ToolTipText = "hello"; // cell specific information here
//this.ultraToolTipManager1.ShowToolTip((UltraGrid)sender);
If I uncomment the ShowToolTip method call above, I get the tooltip to show for each cell immediately as soon as I enter that cell.
What am I doing incorrect?
Thanks!
I asked
[quote user="vrn"]You mean to say "draw an image in code and use that AS YOUR tooltip"? So you are saying the contents of the tooltip would be painted by me and then rendered as the tooltip?[/quote]
You replied
[quote user="[Infragistics] Mike Saltzman"] Yes, the UltraToolTipManager tooltips can display text and / or images. So you could create a Bitmap in code and draw whatever you want on it and use it as your tooltip. [/quote]
I have never created a Bitmap programmatically. So I may be asking something very basic. For each UltraGrid cell, there is a collection of DataRows I have. Some of the DataColumns of those DataRows need to be rendered in a tabular fashion and show on the tooltip as user hovers over the GridCell.
This Bitmap, in addition to the table needs to show some notes above/below the table. Easy to do? Any resource you can suggest?
Thanks!
Mike, I remember reading somewhere in this forum about turning off some features of Grid if one does not need it and thereby gaining performance. I thought you had mentioned it in this thread but I do not see to find it here.
Thanks!
I am having the grid bind to a DataView. Does this issue with binding to DataSet potentially become a performance problem for my app or does the use of DataView shelter me from it?
Thanks!
Mike, great article. You article is a great headup and comes at a very good time personally since I would designing for the next phase of my project that involves changing Appearance for cells. Here's the problem:
– Depending on the user's selection, the data pulled over from server may have as many as 100 rows and 100 columns (about 10000 cells)
– Depending on some application setting, half of these cells may need to be have it Appearance set by the business logic
– The business logic has four parameters and affects Appearance differently. Two parameters affects the background color, one Appearance affects the bolding of foreground and last one affects the foreground.
– These four parameters are independent i.e. so one does not affect the other. If the two parameter that affect background happen together, then one takes precedence over the other.
___________________________________________________________________
Question:
– Reading your article, seems like I would be cause instantiation of the Cell Object for all those cells that the business logic wants to set the Appearance for. If that is around 5000 cells, how big a perrformance concern is that?
– Reading your article, I will be instantiating about 5000 Appearance object for each Cell. How big a concern is that?
– In your article you suggest caching the copy of a Appearance and reusing that. In my case, the Appearance is a result of some combination of the independent four parameters. I will have to create an elaborate scheme to cache for various parameter combination. You think that would worth doing?
– Any other suggestions?
[quote user="[Infragistics] Mike Saltzman"]You would use the MouseMove event. Or maybe MouseEnterElement. Then you have to determine what the mouse is over. You do this using the ElementFromPoint method. [/quote]
Is it a problem if a set of related grids share an instance of the tooltipmanager?
[quote user=”[Infragistics] Mike Saltzman”]One thing you could do is dynamically draw an image in code and use that are you tooltip.[/quote]
You mean to say “draw an image in code and use that AS YOUR tooltip”? So you are saying the contents of the tooltip would be painted by me and then rendered as the tooltip?
[quote user=”[Infragistics] Mike Saltzman”]Or you could possibly use a formatted tooltip with tabs. [/quote]
I am sorry to ask you what may be a basic question but where does one access formatting properties for a tooltip? Is that in toolmanager?
Reading another post where the developer wanted a formatted tooltip that he can click on, you recommend use of UltraDeskTopAlert. Can that control show like a tooltip i.e. box with a line pointing to the grid cell? Is that advice applicable to me where I would like to show a few rows and columsn of data?
Thanks!