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

Popup Window with Internal Content

7 Answers 178 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dustin
Top achievements
Rank 1
Dustin asked on 17 Oct 2008, 09:29 PM
I am using the RadWindowManager and creating a Window in it's properties:

<telerik:RadWindowManager ID="winmanParolee" runat="server" ReloadOnShow="false" VisibleOnPageLoad="true" KeepInScreenBounds="true"
    <Windows> 
        <telerik:RadWindow ID="winPopup" runat="server" OpenerElementID="btnTest" ShowContentDuringLoad="true" KeepInScreenBounds="true" Modal="true"
            <div>My dialog content here...</div> 
        </telerik:RadWindow> 
    </Windows> 
</telerik:RadWindowManager> 

I am trying to open the window on buttonclick, using an asp:button. If I have the window visible on load then it shows, but when hidden and the button is clicked it dows not appear.

I am loading this from a user control that is loaded on click of a tab in a tabstrip.

Any help is greatly appreciated.

7 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 20 Oct 2008, 07:08 AM
Hi Dustin,

OpenerElementID is intended to be used in simple scenarios only. When there is a more complex logic like in your case, we suggest to either open the RadWindow from the codebehind (winPopup.VisibleOnpageLoad = true) or from the client - radopen() / show().



Kind regards,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Dustin
Top achievements
Rank 1
answered on 21 Oct 2008, 06:47 PM
I think I was a little confusing. I am trying to load a popup that does not get the content from an external page but from the content in the radwindow template.
function ShowPopUp(popupWindow) 
 var oPopup = $find(popupWindow); 
 oPopup.show();  
 
onclick="javascript:ShowPopUp("winPopUp");" 
 
 
    <telerik:RadWindowManager ID="winmanPopUp" runat="server" Modal="true" ReloadOnShow="false" VisibleOnPageLoad="false" KeepInScreenBounds="true" ShowContentDuringLoad="true">  
        <Windows>  
            <telerik:RadWindow ID="winPopUp" runat="server">  
                <div>My dialog content here...</div>  
            </telerik:RadWindow>  
        </Windows>  
    </telerik:RadWindowManager> 

This throws and error.

Thanks


0
Andy
Top achievements
Rank 1
answered on 22 Oct 2008, 10:37 AM
2 Dustin:
RadWindow cant display internal content. For this you can use Docking window.
0
Dustin
Top achievements
Rank 1
answered on 22 Oct 2008, 04:13 PM
Am I correct in that it does not let you use it as a modal popup? If not I am using the RadWindow.

That would be a good feature of the window, to allow adding content internally.

Thanks
0
George Garinger
Top achievements
Rank 1
answered on 23 Oct 2008, 03:21 AM
I agree with Dustin... I'm here looking to see if the Window allows internal content rather than pointing to a URL because I want to use the modal feature of the window, but don't want to point it to external content.  By doing this, then the controls within the RadWindow could be referenced and used within the parent page... such as editing a forum post by having it in a modal window.  The .Text property on that textbox in the internal content could then update the content of the parent page through AJAX without getting too complicated.  I suggest adding this feature to the window, but if the docking works, I can do without modal for now.
0
Georgi Tunev
Telerik team
answered on 23 Oct 2008, 11:16 AM
Hello George,

For scenarios like yours, you can use RadToolTip as well - there the content is in the same page and the control has a modal feature.
As for RadWindow, it is intended to replace the standard browser's popup (window.open()) and the control itself is based on an IFRAME. Just like the popup and IFRAME, RadWindow is simply a container that displays a content page different from the parent one.


Best wishes,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Andy
Top achievements
Rank 1
answered on 23 Oct 2008, 11:26 AM
4 Dustin & George Garinger:
Here (Differences From Telerik RadDock) you can find answer on yours questions.
Tags
Window
Asked by
Dustin
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Dustin
Top achievements
Rank 1
Andy
Top achievements
Rank 1
George Garinger
Top achievements
Rank 1
Share this question
or