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

RadFormDecorator added from codebehind

1 Answer 78 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Jaime
Top achievements
Rank 1
Jaime asked on 24 Jul 2008, 04:45 PM
Hi guys, I am trying to add a RadFormDecorator to my page dynamically but it is not working as expected, the styles are being applied but it seems that the client side part is not being loaded/applied, this is what i am doing in the page load event:


var _formDecorator = new RadFormDecorator(); 
_formDecorator.EnableEmbeddedSkins = true
_formDecorator.Skin = "Vista"
_formDecorator.DecoratedControls = FormDecoratorDecoratedControls.CheckBoxes | FormDecoratorDecoratedControls.RadioButtons; 
_formDecorator.ID = "MyFormDecorator"
this.Controls.Add(_formDecorator); 

If I add a control to the designer everything looks fine.

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Jul 2008, 12:11 PM
Hello Jaime,

Please provide more details on this problem. What exactly is the behavior that you experience?



Regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
FormDecorator
Asked by
Jaime
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or