Hello,
to render a DevExpress control to Html you provide to methods Render() and GetHtml(). On your demo pages it looks as if you choose them randomly. Therefor my question: Can you clarify when to use Render() and in which cases to use GetHtml()? What are the differences? There is not much information about it in the documentation. I found only this link regarding to this topic: http://documentation.devexpress.com/#AspNet/DevExpressWebMvcExtensionBaseClassMethodsTopic
Thanks in advance.
Best regards Philipp
Render() vs GetHtml()
Answers
Hi Philipp,
At present, the Render and GetHtml methods do the same thing: return a render string. Previously, the Render method wrote a render string to a Response directly. We have changed this behavior due to the following Breaking Change:
BC1225: The WriteLineToResponse and WriteToResponse methods of DevExpressHelper have been made obsolete.
The WriteLineToResponse method works incorrectly when partial views or templates with MVCx extentions are rendered before calling it
Thanks,
Marion