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

Decorating a button created after the page loaded??

1 Answer 53 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Christoph
Top achievements
Rank 1
Christoph asked on 08 May 2009, 03:33 PM
Dear sirs

var BodyObj = document.getElementsByTagName("body")[0];  
 
var CloseButtonElement = document.createElement("input");  
CloseButtonElement.setAttribute("type""button");  
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

Chris

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 11 May 2009, 10:39 AM
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.


Regards,
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.
Tags
FormDecorator
Asked by
Christoph
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or