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

Reset Style

1 Answer 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 19 Nov 2010, 04:02 PM
What does reset style do?....I mean I can GUESS :)  But it seems like it's not resetting all the properties.

I've got two textboxes, both I want to look the same.  So the one I just freshly dropped onto the report looks default (arial 10).  Then there's another one who's got Tahoma, grey color, aligned right.  If I copy the style if the new box I dropped and paste it into the Tahoma one, nothing changes.  I assume this is becasue "Default" isn't a style?  I would assume though that the properties set on the one textbox should propagate to the other one since the default settings are still technically a style.

Ok, so given that didn't work I tried in the opposite direction.  Copied the style from the tahoma and pasted it into the new one and everything worked great....however that's not what I wanted so I tried a Reset Style on both.

I got Arial 10pt on the one box, and Tahoma 11pt on the other.

What is it resetting it to?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Nov 2010, 06:49 PM
Hello Steve,

You are correct about the first behavior - only explicit changes to the style are copied over and the default is ignored simply by not serializing anything in InitializeComponent. After all, if you want the default style, it is better to drop a new item from the Toolbox or reset the style.
About the resetting, I could not reproduce the behavior you described - please see attached video.

Greetings,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Steve
Telerik team
Share this question
or