Radalert issuse

8 posts, 0 answers
  1. Pravallika
    Pravallika avatar
    30 posts
    Member since:
    Mar 2014

    Posted 08 Jul 2014 Link to this post

    Hai All,


    i have a radwindow , whose content is loading from an aspx page, in that i have a norma textboxes and buttons when i click a save button in my radwindow page
    i am showing radlalert using radajaxmanager i.e
    RadAjaxManager1.ResponseScripts.Add(@"radalert('my message !', 330, 210);");
    instead of radajaxmanger1 we even used radwindowmanager1 , propblem is when we run our application in internet explorer we get below exception in telerik.web.ui.scriptwebresource.axd
    SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference 
    Telerik.Web.UI.WebResource.axd, line 3240 character 1 in the below line 
     if(d&&d.tagName.toLowerCase()!="body")

    please help!!
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 08 Jul 2014 Link to this post

    Hello,

    The following KB article discusses this problem and offers solutions: http://www.telerik.com/support/kb/aspnet-ajax/window/details/opening-a-modal-radwindow-on-page-load-inside-radwindow-under-ie9-and-ie10.


    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Khushboo
    Khushboo avatar
    10 posts
    Member since:
    Jan 2014

    Posted 09 Jul 2014 in reply to Marin Bratanov Link to this post

    Hi Marin,
    The solution that u gave is to open a radwindow inside a radwindow... what i am asking is when i show a radalert using code behind i.e
       RadWindowManager1.RadAlert("Task CreatedSuccess", 300, 150, "Alert Message", "", ""); it works fine in chrome, in ie it shows radlert preoperly but before it shows it throws an exception
     SCRIPT5007: Unable to get property 'toLowerCase' of undefined or null reference 
    Telerik.Web.UI.WebResource.axd, line 3240 character 1 in the below line 
     if(d&&d.tagName.toLowerCase()!="body")
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Jul 2014 in reply to Khushboo Link to this post

    Hi Khushboo,

    Unfortunately I couldn't replicate the issue at my end. Take a look into the sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    </telerik:RadWindowManager>
    <telerik:RadButton ID="rbtnOpenWin" runat="server" Text="Show Alert" OnClick="rbtnOpenWin_Click">
    </telerik:RadButton>

    C#:
    protected void rbtnOpenWin_Click(object sender, EventArgs e)
    {
        RadWindowManager1.RadAlert("Alert Window", 200, 200, "RadAlert", null);
    }

    Please have a look into the following forum thread discuss about the same error.
    http://www.telerik.com/forums/random-error-in-radalert#WeHl645ry0uiOskAJKyPVA

    Please provide one sample code where I can replicate the issue for further help.
    Thanks,
    Shinu.
  6. Khushboo
    Khushboo avatar
    10 posts
    Member since:
    Jan 2014

    Posted 09 Jul 2014 in reply to Shinu Link to this post

    Hi shinu,

    can u put ur codes inside a radwindow  and then check in IE if its working?





  7. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 09 Jul 2014 in reply to Khushboo Link to this post

    Hi Khushboo,

    Please have a look into the sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    </telerik:RadWindowManager>
    <telerik:RadButton ID="rbtnOpenWindow" runat="server" Text="Click" AutoPostBack="false"
        OnClientClicked="openWindow">
    </telerik:RadButton>
    <telerik:RadWindow ID="rwindowAlertWindow" runat="server">
        <ContentTemplate>
            <telerik:RadButton ID="rbtnShowAlert" runat="server" Text="Show Alert" OnClick="rbtnShowAlert_Click">
            </telerik:RadButton>
        </ContentTemplate>
    </telerik:RadWindow>

    C#:
    protected void rbtnShowAlert_Click(object sender, EventArgs e)
    {
        RadWindowManager1.RadAlert("Alert Window", 200, 200, "RadAlert", null);
    }

    JavaScript:
    function openWindow(sender, args) {
        $find("<%=rwindowAlertWindow.ClientID%>").show();
    }

    Please provide your code if it doesn't help.
    Thanks,
    Shinu.
  8. Khushboo
    Khushboo avatar
    10 posts
    Member since:
    Jan 2014

    Posted 09 Jul 2014 in reply to Shinu Link to this post

    Master Page.aspx

    <telerik:RadWindow ID="RadWindow1" runat="server" Skin="WebBlue" Behaviors="Close,Maximize,Move,Minimize" Modal="false"
                       EnableShadow="true"
                        KeepInScreenBounds="true" Width="1000px" Height="480px">
                    </telerik:RadWindow>
     
     <telerik:RadButton ID="RadButton1" runat="server" Width="20" Height="20" ToolTip="Settings" OnClientClicked="openRadWindowSettings" AutoPostBack="false">
                                                                    
                                                                </telerik:RadButton>
     function openRadWindowSettings(sender, args) {
                     
                    $find("<%= RadButton1.ClientID %>").setUrl("../../aspx/WebAppl/Default.aspx");
                    $find("<%= RadButton1.ClientID %>").show();
                  
     
                }
    Default.aspx:
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" EnablePageMethods="true" >
               <Scripts>
           
        </Scripts>
            </telerik:RadScriptManager>
            <telerik:RadWindowManager ID="RadWindowManager1" Skin="WebBlue" runat="server" >
            </telerik:RadWindowManager>
         <telerik:RadTabStrip runat="server" MultiPageID="mpPageView" Width="100%" ID="tabTest"
                                            Skin="Sitefinity" Style="padding-left: 0px; padding-top: 0px;">
                                            <Tabs>
                                                <telerik:RadTab runat="server" Value="t4" Text="TAB1" ForeColor="Black" Font-Bold="true"
                                                    PageViewID="pvTab1" Selected="true" Font-Size="11px" />
                                                <telerik:RadTab runat="server" Value="tabConfig" Text="TAB2" ForeColor="Black"
                                                    Font-Bold="true" PageViewID="pvTab2" Font-Size="11px" />
                                                
     
                                            </Tabs>
                                        </telerik:RadTabStrip>
     
     <telerik:RadMultiPage runat="server" ID="mpPageView" SelectedIndex="0">
                                            <telerik:RadPageView runat="server" ID="pvTab1">
     
     
      <telerik:RadAjaxPanel ID="pnl" Width="100%" runat="server">
    <table style="background-color: #FFFFFF; color: Black; width: 100%;">
                                                                            <tr style="width: 100%;">
     
                                                                                <td  style="width: 50%;">
                                                                                    <asp:Label ID="lbl1" runat="server" Text="Label Name"></asp:Label>
                                                                                </td>
     
                                                                                <td  style="width: 50%;">
     
                                                                                    <asp:TextBox ID="tb1" Width="95%" runat="server"></asp:TextBox>
                                                                                    
                                                                                </td>
     
                                                                            </tr>
     
                                                                            <tr>
                                                                                <td  style="width: 50%;">
                                                                                    <asp:Label ID="lbl2" runat="server" Text="Label2"></asp:Label>
                                                                                </td>
     
                                                                                <td  style="width: 50%;">
     
                                                                                    <asp:TextBox ID="tb2" Width="95%" runat="server"></asp:TextBox>
                                                                                  
                                                                                </td>
                                                                            </tr>
     <tr>
                                                                    <td colspan="2">
                                                                        <telerik:RadButton ID="rbtnSave" runat="server"  Text="Save"
                                                                            ToolTip="Save" OnClick="rbtnSave_Click">
                                                                            <Icon PrimaryIconCssClass="rbSave" PrimaryIconLeft="4" PrimaryIconTop="4"></Icon>
                                                                        </telerik:RadButton>
    </tr>
     
    </table>
     protected void rbtnSave_Click(object sender, EventArgs e)
            {
      RadWindowManager1.RadAlert("Message", 300, 150, "Alert Message", "", "");
    }
  9. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Jul 2014 in reply to Khushboo Link to this post

    Hi Khushboo,

    In order to open a new page on the click of RadButton configured as StandardButton, you have to handle the client-side event OnClientClicking. In this event open the URL speicfied in the NavigateUrl property using JavaScript. Please do the following modification in your Master Page. The code for calling RadAlert is working fine at my end.

    ASPX:
    <telerik:RadButton ID="RadButton1" runat="server" Width="20" Height="20" ToolTip="Settings" OnClientClicking="openRadWindowSettings" AutoPostBack="false" Text="Open" NavigateUrl="Default2.aspx">
    </telerik:RadButton>

    JavaScript:
    function openRadWindowSettings(sender, args) {
        window.location = sender.get_navigateUrl();
        args.set_cancel(true);
    }

    Thanks,
    Shinu.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017