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

window with html-content

1 Answer 69 Views
Window
This is a migrated thread and some comments may be shown as answers.
k
Top achievements
Rank 1
k asked on 22 Dec 2008, 05:08 PM
how can i put html content into window without using property NavigateUrl? simply put some text or table without using one more page?

 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 23 Dec 2008, 06:53 AM
Hi conrad,

There is a set_contentElement() method, but note that it supports pure HTML only. Here is how to use it:

<form id="form1" runat="server"
    <asp:ScriptManager ID="ScriptManager1" runat="server"
    </asp:ScriptManager> 
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server"
    </telerik:RadWindowManager> 
     
    <script type="text/javascript"
        function openAndSet() 
        { 
            var content = $get("hiddenContent");  
            var oWnd = radopen(null,"RadWindow1");  
            oWnd.set_contentElement(content);  
        } 
     
    </script> 
     
    <button onclick="openAndSet(); return false;">open and set</button> 
    <div style="display: none"
        <div id="hiddenContent"
            <table> 
                <tbody> 
                    <tr> 
                        <td> 
                            1</td> 
                        <td> 
                            2</td> 
                        <td> 
                            3</td> 
                    </tr> 
                    <tr> 
                        <td> 
                            4</td> 
                        <td> 
                            5</td> 
                        <td> 
                            6</td> 
                    </tr> 
                    <tr> 
                        <td> 
                            7</td> 
                        <td> 
                            8</td> 
                        <td> 
                            9</td> 
                    </tr> 
                </tbody> 
            </table> 
        </div> 
    </div> 
</form> 


Best wishes,
Georgi Tunev
the Telerik team

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