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

about contenttemplate of radwindow

5 Answers 98 Views
Window
This is a migrated thread and some comments may be shown as answers.
Webster Velasco
Top achievements
Rank 2
Webster Velasco asked on 15 Dec 2009, 11:19 AM
hi

i want to know if i can add my htmlHiddenInput value as the radwindow content?

for example

i have this control

<input type="hidden" id="lblHelpPagina" runat="server" value="test"/> 


this value i want is to show in radwindow
when i click a button which fire the radopen event.

this control is find in the main page..

thanks a lot

i need asnwer asap..

regards
webster

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 15 Dec 2009, 12:24 PM
Hello,

I have attached 'OnClientShow' event to RadWindow in order to set the content according to the HiddenField value. Here is my code. give a try with this and see whether it suits your need.

aspx:
 
<input type="hidden" id="lblHelpPagina" runat="server" value="test" /> 
<telerik:RadWindow ID="radWindow2" runat="server" VisibleOnPageLoad="true" Behavior="Move,Close,Reload" 
    OnClientShow="OnClientShow"
    <ContentTemplate> 
        <input id="Text1" type="text" onload="loadContent1();" /> 
    </ContentTemplate> 
</telerik:RadWindow> 

javascript:
 
    <script type="text/javascript"
        function OnClientShow() { 
            alert("Hi"); 
            var value = document.getElementById("lblHelpPagina"); 
            var content = document.getElementById("Text1"); 
            content.value = value.value; 
        } 
    </script> 

-Shinu.
0
Webster Velasco
Top achievements
Rank 2
answered on 15 Dec 2009, 12:56 PM
hi but how cn i open this radwindow?

i want to open this window on button click
0
Princy
Top achievements
Rank 1
answered on 15 Dec 2009, 02:08 PM
Hi,

Set the OpenerElementID property to the ControlID of button that you want the window to appear when the user clicks it.

ASPX:
    <telerik:RadWindow ID="radWindow2" OpenerElementID="Button1" runat="server" Behavior="Move,Close,Reload"
        OnClientShow="OnClientShow">
        . . .
    </telerik:RadWindow>
    <asp:Button ID="Button1" runat="server" Text="Open Window" />




Thanks,
Princy.
0
Webster Velasco
Top achievements
Rank 2
answered on 15 Dec 2009, 02:22 PM
thanks for the help.. it works perfectly
0
Webster Velasco
Top achievements
Rank 2
answered on 15 Dec 2009, 02:32 PM
i have another question..

what is the property to make my radwindow scroll able when its in overflow?
Tags
Window
Asked by
Webster Velasco
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 1
Webster Velasco
Top achievements
Rank 2
Princy
Top achievements
Rank 1
Share this question
or