Hello Vaibhav,
Please note that providing and implementing custom solutions is beyond the scope of our support. I will explain how the XmlHttpPanel control works, and how it should be used, and you can decide whether it is suitable for your scenario.
How the XmlHttpPanel works?
Imagine you have a <div/> element, and you want to paste some HTML content within, using JavaScript. One would use either
div.innerHTML or
div.appendChild for this purpose. Well that's the underlying principle of the XmlHttpPanel. It pastes the HTML content received from the web service or the callback, within the panel's HTML element (<span/> or <div/>). This means that the WebService method should return HTML string which then will be pasted in the XmlHttpPanel element. In the callback event handler you should add Controls to the XmlHttpPanel, or modify the controls that are already in the XmlHttpPanel. If you want add pure HTML element, you should create a LiteralControl and set the HTML to its Text property.
Here is how a sample code should look like using both approaches:
WebService
CallBack
More information about the XmlHttpPanel can be found on our
online documentation.
Greetings,
Pero
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items