This is a migrated thread and some comments may be shown as answers.

Issue with RadScriptManager at page in RadWindow.

1 Answer 86 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 19 Aug 2010, 10:46 AM
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.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 20 Aug 2010, 01:27 PM
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
Tags
Window
Asked by
Andrew
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or