<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ZZRadWindow.aspx.cs" Inherits="SitefinityWebApp.ZZRadWindow" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title></title></head><body> <script> function OpenWindow() { var wndMgr = GetRadWindowManager(); wndMgr.open("", "ConfirmPlaybackWindow"); return false; } </script> <form id="form1" runat="server"> <div> <asp:ScriptManager runat="server" ID="ScriptMgr" /> <asp:UpdatePanel ID="WindowUpdatePnl" runat="server"> <ContentTemplate> <asp:Label ID="msgLbl" runat="server" /> <telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" runat="server" Skin="Forest" EnableShadow="true" Font-Bold="False" Modal="True"> <Windows> <telerik:RadWindow ID="ConfirmPlaybackWindow" runat="server" DestroyOnClose="False" Skin="Forest" Modal="True"> <ContentTemplate> <div class="confirmationDlgWrp"> <div class="alertWrp"> <asp:Image ID="AlertImg" runat="server" CssClass="dlgIcon" /> <asp:Label ID="AlertLbl" runat="server" CssClass="dlgLabel" Text="Hello World" /> </div> <div class="confirmationDlgBtnWrp"> <asp:Button ID="YesBtn" runat="server" CssClass="dlgYesBtn" Text="Yes" /> <asp:Button ID="NoBtn" runat="server" CssClass="dlgNoBtn" Text="No" /> </div> </div> </ContentTemplate> </telerik:RadWindow> </Windows> </telerik:RadWindowManager> <asp:Button ID="PostBackButton" runat="server" Text="Do Postback" /> </ContentTemplate> </asp:UpdatePanel> <p /> <asp:Button ID="Button1" runat="server" OnClientClick="return OpenWindow()" Text="Open RadWindow" /> </div> </form></body></html>using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace SitefinityWebApp{ public partial class ZZRadWindow : System.Web.UI.Page { private static int PostBackCount = 0; protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) { msgLbl.Text = string.Format("{0}<p/>PostBackCount: {1}", msgLbl.Text, ++PostBackCount); string script2 = "<script type=\"text/javascript\">OpenWindow();</script>"; ScriptManager.RegisterStartupScript(WindowUpdatePnl, typeof(string), "OpenWindow", script2, false); } } }}I am using the RadProgressArea; the cancel button displays but does not work on Safari. Also the TotalProgressPercent indicator does not dispay.
I have the newest version of Rad. I am using Safari 3.0.3 on a Vista Box.
| <telerik:RadProgressManager ID="RadProgressManager1" runat="server" /> |
| <telerik:RadProgressArea ID="RadProgressArea2" runat="server" DisplayCancelButton="True" ProgressIndicators="TotalProgressBar, TotalProgressPercent, TimeElapsed, TimeEstimated" Skin="Black"> |
| <Localization Uploaded="Uploaded" /> |
| </telerik:RadProgressArea> |
http://support.microsoft.com/kb/981884
However, this hotfix did not work. Maybe because it is for the MS UpdatePanel?
If so, how can this be resolved? This error comes up when grid tries to pull too many rows.
-Stan
Dear all,
I’m trying to open the Rad window as modal and to be able to calculate the size of the opened window based on the opened page size i.e 400x400 and keep it centered. I don’t not want to use the autosize property.
Below is my Rad window setting as well the JS code which I use to recalculate the window size to fill the window.
Yourhelp is appreciated to open the modal window centered and in correct size based on the content page.
var oWnd = window.radopen(_EncryptedURL, "AdvancedForm");
oWnd.set_title(pageTitle);
resizeRadWindow(oWnd);
function resizeRadWindow(radWindow) {
var windowHeight = $(window).height();
var windowWidth = $(window).width();
windowHeight = (windowHeight * 97.5) / 100;
windowWidth = (windowWidth * 98) / 100;
radWindow.moveTo(10, 10);
radWindow.setSize(windowWidth, windowHeight);
}
<rad:RadWindowManager ID="RadWindowManager1" runat="server"> <Windows> <rad:RadWindow ID="AdvancedForm" runat="server" Modal="True" OpenerElementID="showDialog" InitialBehaviors="None" ShowContentDuringLoad="false" Behaviors="Close" OnClientClose="refreshScheduler" ReloadOnShow="True" Title="" NavigateUrl="" VisibleStatusbar="False"> </rad:RadWindow> </Windows> </rad:RadWindowManager>