I’m not sure if I should be posting this issue on the Button forum or the Window forum. So if I need to post this issue somewhere else, please let me know. The following is my issue.
I have Main.aspx that has the following RadWindowManager configuration:
<telerik:RadWindowManager ID="radWinMgr" runat="server" AutoSize="true" Behaviors="Move" BorderStyle="Solid" EnableEmbeddedBaseStylesheet="false" Modal="true" ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false" VisibleTitlebar="true" OnClientClose="fncClientClose">
<Windows>
<telerik:RadWindow ID="Parent1Win" runat="server" NavigateUrl="Page1.aspx"></telerik:RadWindow>
<telerik:RadWindow ID="Parent2Win" runat="server" NavigateUrl="Page2.aspx"></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
Main.aspx also has 2 standard ASP buttons that will open either RadWindow defined above just fine with no problems at all. Here is one of my ASP buttons:
<asp:Button ID="Button1" runat="server" Text="Page 1" OnClientClick="fncOpenPopup('Page1.aspx', 'Parent1Win'); return false;" />
The JavaScript function that is being called by the ASP button is as follows (notice that the function below references the RadWindowManager above):
function fncOpenPopup(oPage, oParent) {
alert("Click OK to open the popup window.")
var winNew = $find("<%=radWinMgr.ClientID%>").open(oPage, oParent);
}
When the ASP button is clicked, it successfully opens the Page1 RadWindow with no problems at all.
But now I want to change the 2 standard ASP buttons and replace each of them with a RadButton. Here is what I have so far:
<telerik:RadButton ID="NewButton1" runat="server" Text="Page 1" OnClientClicked="onClientClicked"></telerik:RadButton>
The function that this RadButton calls is as follows (notice that it simply, in turn, calls the JavaScript function defined above):
function onClientClicked(sender, eventArgs) {
fncOpenPopup('Page1.aspx', 'Parent1Win');
return false;
}
When the RadButton is clicked, the alert box within fncOpenPopup() appears, and when you click OK on the alert, Main.aspx flickers once or twice, like it is trying to open the Page1 RadWindow, but then nothing happens; you are just left sitting there staring at Main.aspx.
What do I need to change to get the RadButton to successfully open the RadWindow?
Thank you,
Steven
I have Main.aspx that has the following RadWindowManager configuration:
<telerik:RadWindowManager ID="radWinMgr" runat="server" AutoSize="true" Behaviors="Move" BorderStyle="Solid" EnableEmbeddedBaseStylesheet="false" Modal="true" ReloadOnShow="true" ShowContentDuringLoad="false" VisibleStatusbar="false" VisibleTitlebar="true" OnClientClose="fncClientClose">
<Windows>
<telerik:RadWindow ID="Parent1Win" runat="server" NavigateUrl="Page1.aspx"></telerik:RadWindow>
<telerik:RadWindow ID="Parent2Win" runat="server" NavigateUrl="Page2.aspx"></telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
Main.aspx also has 2 standard ASP buttons that will open either RadWindow defined above just fine with no problems at all. Here is one of my ASP buttons:
<asp:Button ID="Button1" runat="server" Text="Page 1" OnClientClick="fncOpenPopup('Page1.aspx', 'Parent1Win'); return false;" />
The JavaScript function that is being called by the ASP button is as follows (notice that the function below references the RadWindowManager above):
function fncOpenPopup(oPage, oParent) {
alert("Click OK to open the popup window.")
var winNew = $find("<%=radWinMgr.ClientID%>").open(oPage, oParent);
}
When the ASP button is clicked, it successfully opens the Page1 RadWindow with no problems at all.
But now I want to change the 2 standard ASP buttons and replace each of them with a RadButton. Here is what I have so far:
<telerik:RadButton ID="NewButton1" runat="server" Text="Page 1" OnClientClicked="onClientClicked"></telerik:RadButton>
The function that this RadButton calls is as follows (notice that it simply, in turn, calls the JavaScript function defined above):
function onClientClicked(sender, eventArgs) {
fncOpenPopup('Page1.aspx', 'Parent1Win');
return false;
}
When the RadButton is clicked, the alert box within fncOpenPopup() appears, and when you click OK on the alert, Main.aspx flickers once or twice, like it is trying to open the Page1 RadWindow, but then nothing happens; you are just left sitting there staring at Main.aspx.
What do I need to change to get the RadButton to successfully open the RadWindow?
Thank you,
Steven