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

[Solved] OnClientPageLoad not firing in RadWindow "Prometheus"

1 Answer 166 Views
Window
This is a migrated thread and some comments may be shown as answers.
M Iftekharul
Top achievements
Rank 1
M Iftekharul asked on 24 Apr 2008, 12:59 AM
This is the definition i was using:
<radW:RadWindowManager ID="wmSingleton" VisibleOnPageLoad="False" OffsetElementID="OffsetElement"
    runat="server" OnClientPageLoad="OnClientPageLoad">
    <Windows>
        <radW:RadWindow ID="winSymbol" runat="server" Height="460px" Width="925px" Behavior="Close"
            Title="" NavigateUrl="ListEdit.aspx" Modal="True" ReloadOnShow="false" OnClientClose="PostbackOnDialogClose"
            VisibleStatusbar="false" VisibleTitlebar="true" Skin="SfStyleClear" EnableEmbeddedSkins="false" ></radW:RadWindow>
    </Windows>
</radW:RadWindowManager>

This is the script method for "OnClientPageLoad":
function OnClientPageLoad(radWindow)
        {
            radWindow.set_OpenerElementID = 'link_<%= this.ID %>Menu';
        }

But the method is not firing when the client page is getting visible. need a solution ASAP.

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 24 Apr 2008, 11:35 AM

I changed: 
function OnClientPageLoad(radWindow)
        {
            radWindow.set_OpenerElementID = 'link_<%= this.ID %>Menu';
        }
with this one:
function OnClientPageLoad(radWindow)
        {
          alert(1);
        }
And everything works as expected.When RadWindow is showed -  ClientPageLoad event is fired.
You can see that this event is fired properly here:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Window/Examples/ClientSideEvents/DefaultCS.aspx
Tags
Window
Asked by
M Iftekharul
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or