Decorating a button created after the page loaded??

2 posts, 0 answers
  1. Christoph
    Christoph avatar
    6 posts
    Member since:
    Jan 2009

    Posted 08 May 2009 Link to this post

    Dear sirs

    var BodyObj = document.getElementsByTagName("body")[0];  
    var CloseButtonElement = document.createElement("input");  
    CloseButtonElement.value = "Ok" 
    CloseButtonElement.onclick = function() { alert("blabla") };  
    BodyObj.insertBefore(CloseButtonElement, BodyObj.firstChild); 

    I have the following scenario:
    After the page got loaded RadFormDecorator is automatically decorating all buttons checkboxes e.t.c

    When I add new Buttons with ClientSide JavaScript I need them formatted with the RadFormDecorator as well.

    How can I format that newly created button?

    I need to Decorate it on the Client Side

    Thanks for your help

  2. Georgi Tunev
    Georgi Tunev avatar
    7207 posts

    Posted 11 May 2009 Link to this post

    Hello Christoph,

    Currently this is not possible. We are planning to change the rendering mechanism that will allow you to use RadFormDecorator's client-side API and to re-decorated a decoration zone, but this will happen with the next major release (Q2) in the summer.

    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top