Hello,
when i put a long text into a cell within a gridview, e.g. "aaaaaaaaaaaaaaaaaaaa", then the first part of the string has a different font size. The second part of the string appears smaller (less space between characters). How can I turn of this feature?
Is this a global setting? I think this could happen to other controls as well.
Thanks for your help
Fabian
when i put a long text into a cell within a gridview, e.g. "aaaaaaaaaaaaaaaaaaaa", then the first part of the string has a different font size. The second part of the string appears smaller (less space between characters). How can I turn of this feature?
Is this a global setting? I think this could happen to other controls as well.
Thanks for your help
Fabian
9 Answers, 1 is accepted
0

Richard Slade
Top achievements
Rank 2
answered on 14 Dec 2010, 09:43 PM
Hi Fabian,
Yes, I can replicate this in the current version. Curiously you get different results with different fonts (or maybe not so curious). I will look into it and if I can find a workaround for you I'll let you know.
regards,
Richard
Yes, I can replicate this in the current version. Curiously you get different results with different fonts (or maybe not so curious). I will look into it and if I can find a workaround for you I'll let you know.
regards,
Richard
0

Fabian
Top achievements
Rank 1
answered on 16 Dec 2010, 11:39 AM
Hi Richard,
could you find a solution to this problem?
We have a lot of long texts in these cells and it looks stupid.
Thanks for a short update in advance.
Fabian
could you find a solution to this problem?
We have a lot of long texts in these cells and it looks stupid.
Thanks for a short update in advance.
Fabian
0
Accepted

Richard Slade
Top achievements
Rank 2
answered on 16 Dec 2010, 11:56 AM
Hi Fabian,
I have just tried it in the latest SP1 update which arrived yesterday, and the issue persists. However, I have just this moment found where the issue lies. Please try setting
which I think will solve your issue.
Let me know if you have any further questions
Regards,
Richard
I have just tried it in the latest SP1 update which arrived yesterday, and the issue persists. However, I have just this moment found where the issue lies. Please try setting
Me
.RadGridView1.UseCompatibleTextRendering =
False
Let me know if you have any further questions
Regards,
Richard
0

Richard Slade
Top achievements
Rank 2
answered on 16 Dec 2010, 11:58 AM
0

Richard Slade
Top achievements
Rank 2
answered on 16 Dec 2010, 12:01 PM
P.s - My suggestion to Telerik that this property is set to False by default as most people are using newer .NET Framework version.
R
R
0

Fabian
Top achievements
Rank 1
answered on 16 Dec 2010, 03:41 PM
Hi Richard,
thank you very much! The settings works. Just one more question.
The application I built is quite huge ( alot of controls all over the place).
Is there an easy way to set this setting (UseCompatibleTextRendering = False) globally?
I tried Application.SetCompatibleTextRenderingDefault(false)
but I get:
{"SetCompatibleTextRenderingDefault must be called before the first IWin32Window object is created in the application."}
but as my application is an Office-Addin (which is loaded after the first window object is visible) I think I cannot use this setting.
any idea?
Thanks again!
Fabian
thank you very much! The settings works. Just one more question.
The application I built is quite huge ( alot of controls all over the place).
Is there an easy way to set this setting (UseCompatibleTextRendering = False) globally?
I tried Application.SetCompatibleTextRenderingDefault(false)
but I get:
{"SetCompatibleTextRenderingDefault must be called before the first IWin32Window object is created in the application."}
but as my application is an Office-Addin (which is loaded after the first window object is visible) I think I cannot use this setting.
any idea?
Thanks again!
Fabian
0

Richard Slade
Top achievements
Rank 2
answered on 16 Dec 2010, 03:44 PM
Hi Fabian,
As far as I know, no. Unless you are using an inherited grid and are using the same one in every place that you can change once. Also, you shouldn't change it for everything. For exmaple, if you were to change this in a RadbuttonElement in a RadMenu, I don't think the button text would render correctly.
Hope that helps, and please remember to mark as answer so others can find teh solution too.
All the best
Richard
As far as I know, no. Unless you are using an inherited grid and are using the same one in every place that you can change once. Also, you shouldn't change it for everything. For exmaple, if you were to change this in a RadbuttonElement in a RadMenu, I don't think the button text would render correctly.
Hope that helps, and please remember to mark as answer so others can find teh solution too.
All the best
Richard
0

Fabian
Top achievements
Rank 1
answered on 16 Dec 2010, 03:50 PM
Hi Richard,
thanks a lot for your help! I marked the answer and will test on what controls this works.
thanks a lot for your help! I marked the answer and will test on what controls this works.
0

Richard Slade
Top achievements
Rank 2
answered on 16 Dec 2010, 03:52 PM
You're welcome. Glad to have been able to help