RadWindow - Focus

1 posts, 0 answers
  1. Bader
    Bader avatar
    215 posts
    Member since:
    Aug 2008

    Posted 23 Aug 2011 Link to this post


    I have a problem in focusing on the radwindow control.
    I'm trying to show to focus on radwindow control using a content page (Not master page) where no body tag exists. So how can I focus on radwindow control? Is there any way to access the masterpage body tag in order to use the onload attribute?

    Very Important: The hierarchy is:     BaseMasterPage (Has the body tag) => DefaultMasterPage => ForgottenPassword Page, In other words, I have to access the body tag of the Master of Master Page .

    Here is my content page:
    <%@ Page Title="" Language="C#" MasterPageFile="~/RL/MasterPages/DefaultMasterPage.master" AutoEventWireup="true" CodeFile="ForgottenPassword.aspx.cs" Inherits="GuidesNS.RL_Pages_ForgottenPassword" %>
    <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
       <script type="text/javascript">
           function FocusOnRadWindow() {
               window.setTimeout(function () {
               }, 100);
    <asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <!-- Page Controls -->

    In case i'm using a aspx page which is not a content page of master page, then I can access the onload attribute of the "body" tag directly:

    <body onload="FocusOnRadWindow()">
      <form  id="form1" runat="server">

    Please, I need your help,
    It is very appreciated to send me the modified code.

Back to Top