Issue with RadScriptManager at page in RadWindow.

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    10 posts
    Member since:
    Jul 2010

    Posted 19 Aug 2010 Link to this post

    Hello, i show RadWindow from parent form:

    <telerik:RadTreeView ID="tvFile" runat="server">
                OnClientContextMenuItemClicking="onClientContextMenuItemClicking">
        <ContextMenus>
            <telerik:RadTreeViewContextMenu ID="MainContextMenu" runat="server">
                <Items>
                     <telerik:RadMenuItem Value="Rights" Text="Rights"/>
               </Items>
           </telerik:RadTreeViewContextMenu>
        </ContextMenus>
        </telerik:RadTreeView>
        <telerik:RadWindowManager ID="winManager" ShowContentDuringLoad="false" VisibleStatusbar="false"
            ReloadOnShow="false" runat="server" Skin="Sunset" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="RadWindow2" Modal="true" onClientClose="OnClientClose"
                NavigateUrl="UserRights.aspx" runat="server" Behaviors="Close">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
     
    <script type="text/javascript">
        function OnClientClose(oWnd, args)
        {
            var arg = args.get_argument();
            if (arg)
             {} 
        }
        function openWin(path) {
            var oWnd = radopen("UserRights.aspx?file="+path, "RadWindow2");
        }
      
     
        function onClientContextMenuItemClicking(sender, args)
        {
            var menuItem = args.get_menuItem();
            var treeNode = args.get_node();
            var nodeValue = treeNode.get_value();
            menuItem.get_menu().hide();
            switch (menuItem.get_value())
            {
                case "Rights":
                    openWin(nodeValue);
                    break;
            }
        }
    </script>



    At UserRights.aspx I need RadScriptManager for RadListBox like this:

    <form id="form1" runat="server">
           <telerik:RadScriptManager ID="RadScriptManager1" runat="server"/>
            <asp:Button runat="server" ID="ds" Text="fd" />
            <telerik:RadListBox runat="server" ID="dcs"></telerik:RadListBox>
    </form>

    But when RadWindow opens at my firebug I got js error:

    this._form is null

    When I haven't got RadScriptManager all is OK. But I need it for RadListBox and UpdatePanel features.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 20 Aug 2010 Link to this post

    Hi Andrew,

    I tried to reproduce the problem locally but everything worked as expected, so at this point I cannot tell what might be the reason for this behavior. What happens when:
    1. you open the content page directly in the browser?
    2. you open the content page in a standard IFRAME?

    If the problem does not exist in these 2 cases, try setting ShowContentDuringLoad to true for the RadWindow and check your app again.

    Regards,
    Georgi Tunev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top