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

Top level font property no longer works.

4 Answers 90 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 17 Nov 2010, 11:52 AM
Since Q3-2010 the font property on the RadButton doesn't work. However you can change the textboxitem element to set the font but can you explain why this is now the case ?

I haven't checked every rad control but the SpinEditor has the same issue...

Thanks


Paul.

4 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 17 Nov 2010, 02:30 PM
Hello Paul,

I'm running the latest version, so I can only confirm what you have written here.

The RadButton (as with many other controls) inherit from RadControl which has a ForeColor property. (the RadButton itself does not have a ForeColor property). When you set the ForeColor on the RadButton you are actually setting the ForeColor of the RadControl, which internally sets the ForeColor of the RootElement. As you rightly pointed out, you need to set the ForeColor of the RadButtonElement.

If you use an inherited RadButton, you could always subscribe to the ForeColorChanged event of the RadButton and set the RadButtonElement ForeColor property when that changes or provide the ForeColor property in your RadButton control that sets the color of the RadButtonElement.

I hope this helps, but let me know if you need more information

Richard
0
Paul
Top achievements
Rank 1
answered on 17 Nov 2010, 02:36 PM
Hi Richard

Thanks for your reply. I realise that there are different elements and setting the property on one element doesn't necessarily cascade down the element tree but the font property used to work in the previous version (Q2-2010) and now it doesn't.

I was just wondering why Telerik had changed this !!

Thanks again

Paul.
0
Richard Slade
Top achievements
Rank 2
answered on 17 Nov 2010, 02:39 PM
Hi Paul,

My apologies that I can't answer your question on why this has changed, but I hope the information has been of some use. If there's anything else you need, just let me know.

Richard
0
Stefan
Telerik team
answered on 19 Nov 2010, 03:59 PM
Hello guys, 

In our last release we introduced changes in ControlDefault theme which cause the observed behavior. In fact properties set in the theme have greater priority in this case. We will change the theme to support this scenario in our upcoming service pack. 

Paul, I have updated your Telerik points for the feedback. 

Richard, thank you  for your cooperation.

Should you have any further questions, do not hesitate to ask.
 

All the best,
Stefan
the Telerik team
See What's New in RadControls for WinForms in Q3 2010 on Wednesday, November 17, 11am Eastern Time: Register here>>
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Paul
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Paul
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or