RadFormDecorator added from codebehind

2 posts, 0 answers
  1. Jaime
    Jaime avatar
    17 posts
    Member since:
    Apr 2008

    Posted 24 Jul 2008 Link to this post

    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.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jul 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top