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

html text in RadWidow

1 Answer 51 Views
Window
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 1
Tony asked on 05 Jan 2009, 09:07 PM
Hello,

I would like to use html text in a RadWindow.  I am working in VB.NET, and ideally, several sections of html text would be in the VB code so that when needed, one selection can be bound to a RadWindow. 
Any suggestions will be appreciated.

Tony

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 06 Jan 2009, 02:00 PM
Hello Tony,

RadWIndow is based on an IFRAME and just like the standard popup or IFRAME it displays a content page that is different from the parent one. There is a RadWindow client-side method however that allows you to set pure HTML content in the window. More information on the subject is available here:
http://www.telerik.com/community/forums/aspnet-ajax/window/window-with-html-content.aspx

Since this method is client-side only, if you want to create an HTML string on the server and use it in RadWindow, you will need to output a JavaScript function that will call the set_contentElement() method on the client. Outputting JavaScript code from the server is a general programming task and there are many resources in the Net that show how to do this.

Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Tony
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or