This is a migrated thread and some comments may be shown as answers.

Bad ScreenTip on First Display

6 Answers 107 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jeremy Murtishaw
Top achievements
Rank 1
Jeremy Murtishaw asked on 31 Jan 2010, 09:25 AM
Hello,

I've noticed a problem with screen tips, specifically in GridViews, that I can't get rid of. Basically, the first time that a screen tip is shown for a given grid, it displays with improper sizing and causes visual artifacts on the screen. Subsequent displays of the same screen tip are fine. I am certain that no code or relevant variables are changing. Also, somehow this problem is occurring throughout my application, even when the code customizing the screen tip is completely different. Please see the attached screenshots. The first and third are examples of the problem, the second is the same as the first, but on a subsequent screen tip.

Thanks!
Jeremy

6 Answers, 1 is accepted

Sort by
0
Jeremy Murtishaw
Top achievements
Rank 1
answered on 31 Jan 2010, 09:28 AM
Figured you might want some example code. This is what generated the third example below. Again, it works fine on subsequent tries.

GridDataCellElement cell = e.Item as GridDataCellElement; 
                if (cell != null && cell.RowInfo != null && cell.RowInfo is GridViewDataRowInfo) 
                { 
                    if (cell.ColumnIndex == (int)Event.Column.Description) 
                    { 
                        string sValue = cell.Text; 
                        if (sValue == ""
                            return
                        RadOffice2007ScreenTipElement screenTip = new RadOffice2007ScreenTipElement(); 
                        screenTip.CaptionLabel.Text = string.Empty; 
                        screenTip.MainTextLabel.Text = sValue; 
                        screenTip.MainTextLabel.AutoSize = false
                        //screenTip.MainTextLabel.AutoSizeMode =  RadAutoSizeMode.FitToAvailableSize; 
                        screenTip.AutoSize = false
                        screenTip.EnableCustomSize = true
                        int iHeight = 34; 
                        screenTip.MainTextLabel.Size = new Size(grdEvents.Columns[(int)Event.Column.Description].Width + 140, iHeight); 
                        screenTip.MainTextLabel.PositionOffset = new SizeF(-2f, -4f); 
                        screenTip.Size = new Size(grdEvents.Columns[(int)Event.Column.Description].Width + 150, iHeight); 
                        //screenTip.MainTextLabel.Size = new Size(240, 45); 
                        screenTip.MainTextLabel.TextWrap = true
                        cell.ScreenTip = screenTip; 
                    } 
                     
                } 
0
Nikolay
Telerik team
answered on 03 Feb 2010, 02:32 PM
Hello Jeremy Murtishaw,

If you want to set a custom size to RadScreenTip, you should use the EnableCustomSize property that we exposed for such purposes. However, please note that you should not modify the AutoSize property. This will allow you to use RadScreenTip without any issues.

Sincerely yours,
Nikolay
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Jeremy Murtishaw
Top achievements
Rank 1
answered on 03 Feb 2010, 07:24 PM
Hi Nikolay,

Your solution has helped, but it is not fixing the problem 100%. Although there are no ugly gray areas any more, the size of the tooltip is still defaulting to a nearly square rectangle on the first display, and my custom size is not being applied until the second display. Could you try to help with this symptom as well?

I've attached two screen shots. One of the first display, including the defaulted size and clipped text, and one of the second display, which looks perfect.

Thanks!
Jeremy
0
Nikolay
Telerik team
answered on 09 Feb 2010, 07:34 AM
Hi Jeremy Murtishaw,

Thank you for bringing this issue to our attention. I was able to reproduce it. We will address it in one of our next releases. However, I am not able to provide you with a workaround for the time being.

I have updated your Telerik points for the report.

Kind regards,
Nikolay
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Jeremy Murtishaw
Top achievements
Rank 1
answered on 19 Feb 2010, 06:00 PM
Hi Nikolay,

Any chance this will be fixed in Q1 2010? I am seeing this pervasively throughout all of my telerik controls. It doesn't matter whether it's a button, Scheduler, or Grid, it always has the wrong default size the first time the screentip loads. A fix would be very much appreciated.

Jeremy
0
Nikolay
Telerik team
answered on 25 Feb 2010, 07:57 AM
Hi Jeremy Murtishaw,

We will do our best to address the issue with setting a custom size to RadScreenTIp in Q1 2010.

Sincerely yours,
Nikolay
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
GridView
Asked by
Jeremy Murtishaw
Top achievements
Rank 1
Answers by
Jeremy Murtishaw
Top achievements
Rank 1
Nikolay
Telerik team
Share this question
or