or
// 1) User-code file, launched at body:onLoad() event
var oWnd = $find("helpWindow");oWnd.setSize(400,500);oWnd.setActive(false);// 2) Telerik code filesetActive:function(c){var f=this._popupElement;if(!c){Sys.UI.DomElement.addCssClass(f,"rwInactiveWindow"); // f is null
[...]// 3) Microsoft ASP.Net Ajax code fileSys.UI.DomElement.addCssClass = function Sys$UI$DomElement$addCssClass(element, className) { /// <summary locid="M:J#Sys.UI.DomElement.addCssClass" /> /// <param name="element" domElement="true"></param> /// <param name="className" type="String"></param> var e = Function._validateParams(arguments, [ {name: "element", domElement: true}, {name: "className", type: String} ]); if (e) throw e; // The exception is thrown here
if (!Sys.UI.DomElement.containsCssClass(element, className)) { if (element.className === '') { element.className = className; } else { element.className += ' ' + className; } }}<telerik:RadWindowManager ID="RadWindowManager1" ShowContentDuringLoad="false" VisibleStatusbar="false" ReloadOnShow="true" runat="server" EnableShadow="true"> <Windows> <telerik:RadWindow ID="HelpWindow" runat="server" NavigateUrl="Help.aspx" ReloadOnShow="true" VisibleOnPageLoad="false" ShowContentDuringLoad="false" Behaviors="Close, Maximize, Resize" Width="500px" Height="400px" Modal="true" Animation="Fade" KeepInScreenBounds="true" RestrictionZoneID="form2" AutoSizeBehaviors="Height"> </telerik:RadWindow>
<radG:RadGrid ID="radGdCopy" runat="server" AutoGenerateColumns="False" Skin="Office2007" Width="100%" UseEmbeddedScripts="false" GridLines="None" AllowPaging="True" AllowSorting="True" PageSize="10"> <MasterTableView CommandItemDisplay="None" Name="ParentGrid"> <CommandItemTemplate> <asp:Label ID="lblHeader" runat="server"></asp:Label> </CommandItemTemplate> <Columns> <radG:GridClientSelectColumn UniqueName="ClientSelectColumn" > <HeaderStyle HorizontalAlign="Center" Width="23px" /> </radG:GridClientSelectColumn> <radG:GridBoundColumn DataField="ID" UniqueName="ID" Visible="False"> </radG:GridBoundColumn> <radG:GridBoundColumn DataField="Name" HeaderText="Name" UniqueName="Name"> </radG:GridBoundColumn> </Columns> <DetailTables> <radG:GridTableView ShowHeadersWhenNoRecords="False" GridLines="None" runat="server" Name="ChildGrid" AllowSorting="True"> <Columns> <radG:GridBoundColumn DataField="subID" HeaderText="subID" UniqueName="subID"> </radG:GridBoundColumn> <radG:GridBoundColumn DataField="subName" HeaderText="subName" UniqueName="subName"> </radG:GridBoundColumn> </Columns> </radG:GridTableView> </DetailTables> <%-- <RowIndicatorColumn> <HeaderStyle Width="20px" /> </RowIndicatorColumn>--%> <ExpandCollapseColumn> <HeaderStyle Width="20px" /> </ExpandCollapseColumn> </MasterTableView> <PagerStyle Mode="NextPrevAndNumeric" /> <ClientSettings EnableClientKeyValues="true" ApplyStylesOnClient="true"> <Selecting AllowRowSelect="True" /> <ClientEvents OnRowSelected="Copy_RowSelected" OnGridCreated="Copy_GridCreated" /> </ClientSettings> </radG:RadGrid>