Completed
Last Updated: 04 Nov 2013 12:10 by ADMIN
Completed
Last Updated: 23 Oct 2013 17:16 by ADMIN
When the following RadWindow's propertis are set - AutoSize="true and  RenderMode="Lightweight", the title's width of the RadWindow is 1px. The workaround is to use either RenderMode="Classic" or to override the title's width:

    <style type="text/css">
        h6.rwTitle {
            width: 60% !important;
        }
    </style>

Completed
Last Updated: 24 Jul 2013 07:59 by ADMIN
The icon shown in the predefined dialogs can be changed with an argument that points to the new image as shown in this demo: http://demos.telerik.com/aspnet-ajax/window/examples/browserdialogboxes/defaultcs.aspx. This does not work with RenderMode=Lightweight
Completed
Last Updated: 24 Jul 2013 07:58 by ADMIN
Possible workarounds:
1) the following CSS rule:
		.rwExternalContent iframe
		{
			height: 100%;
		}

OR

2) some JavaScript attached to the OnClientPageLoad event of the control:
			function OnClientPageLoad(sender)
			{
				sender.get_contentFrame().style.height = "100%";
			}
Completed
Last Updated: 05 Jul 2013 12:52 by ADMIN
If the content page has a title RadWindow should set it for its own title, unless its Title property has been set explicitly.

Since Q2 2013, when ShowContentDuringLoad=true (which is the default value) this does not happen.

The second workaround is using the OnClientPageLoad event:
			function OnClientPageLoad(sender)
			{
				try
				{
					var pageTitle = sender.get_contentFrame().contentWindow.document.title;
					sender.set_title(sender.get_title() == "" ? pageTitle : sender.get_title());
				}
				catch (err)
				{

				}
			}
The try-catch block is used to catch errors in case the page is from another domain and the JavaScript same-origin policy is in effect.

The event handler can also be attached to the RadWindow manager so that it will be used for all its RadWindows.
Completed
Last Updated: 05 Jul 2013 12:03 by ADMIN
A custom icon is replaced with the default icon in the LightWeight renderMode. For the time being the custom icon can be forced by using the OnClientShow event of the control:
		function OnClientShow(sender)
		{
			sender.set_iconUrl(sender.get_iconUrl());
		}
Completed
Last Updated: 01 Jul 2013 07:27 by ADMIN
When a textbox is focused pressing enter will have the browser click the first available button in the form, which is, in this case the first command button from the RadWindow.
If the only available command button is Close the RadWindow will close. 

Pressing enter with a textbox focused fires the next button on the form (you can see this with a simple textbox and button without anything special at all) and the page will be posted):
<asp:TextBox ID="Textbox2" runat="server" />
<button onclick="alert(2);" id="testButton">test button</button>
Since the RadWindow is the first thing rendered in a form the first button from its titlebar gets fired when the textbox is inside its ContentTemplate and enter is pressed.


One of the most suitable workarounds is to add a Pin button and cancel the Pin command:
		function OnClientCommand(sender, args)
		{
			if (args.get_commandName() == "Pin")
			{
				args.set_cancel(true);
				$telerik.$(".rwPinButton", sender.get_popupElement()).blur();
			}
		}
where this is attached to the OnClientCommand event of the RadWindow:
	<telerik:RadWindow ID="RadWindow1" runat="server" OpenerElementID="Button1" RenderMode="Lightweight"
		Behaviors="Pin, Move, Close"  OnClientCommand="OnClientCommand">
		<ContentTemplate>
			<asp:TextBox ID="Textbox1" runat="server" />
		</ContentTemplate>
	</telerik:RadWindow>
	<asp:Button ID="Button1" Text="open the RadWindow" runat="server" />
1 2 3 4