Like the title says. when I load something with the RadXmlHttpPanel the formdecorator does not decorate the controls.
How can I make it trigger?
kind regards,
Wim
2 Answers, 1 is accepted
0
Accepted
Pero
Telerik team
answered on 15 Oct 2009, 02:37 PM
Hello Wim,
When you dynamically add HTML to the page (through JavaScript), the elements will not be decorated. For example if you add an <input> of type="button" will not be decorated. To decorate the "new" HTML you should call the formDecorator.decorate(rootElement) client-side method.
This is exactly what happens when using the RadXmlHttpPanel. The panel receives HTML content (from the WebService or the Client callback) and inserts it on the page. To decorate this newly received HTML you should handle the OnClientResponseEnded client-side event of the RadXmlHttpPanel and call the decorate(rootElement) method passing the XmlPanel's HTML element as a parameter.
Please test the following project and you will notice that the button placed inside the RadXmlHttpPanel is decorated even after the service request:
.aspx