Error when showing window

3 posts, 0 answers
  1. Andy
    Andy avatar
    27 posts
    Member since:
    Nov 2010

    Posted 13 Dec 2013 Link to this post

    I get the following javascript error when I try to show a RadWindow

    JavaScript runtime error: Unable to get property 'parentNode' of undefined or null reference

    The error is in the following code (3rd line)

    },_isWindowRightToLeft:function(){var d=this._isRightToLeft;

    if(d==null){var c=this.get_element();

    var e=c.parentNode?c:this._getDefaultParent();


    }return d;


    }},_createStatusbarMessageCell:function(e){var f=e.rows[0].insertCell(-1);"100%";

    My code is similar to the code in the sample

    I have a nestedviewtemplate in a radgird that then has a radgrid in the nestedveiwtemplate.  This inner radgrid has a linkbutton in one of the columns that calls a javascript that does a; 

    The  MyRadWindow is positioned in the aspx code just after the main radgrid.

    I cannot seem to find any info about similar issues.  Any suggestions to finding the cause of this issue?


  2. Andy
    Andy avatar
    27 posts
    Member since:
    Nov 2010

    Posted 13 Dec 2013 Link to this post

    The one other unique thing that I forgot to mention is that the radgrid and radwindow are in a user control.  The form itself doesn't have any radwindows.

  3. DevCraft R3 2016 release webinar banner
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 16 Dec 2013 Link to this post

    Hi  Andy,

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

    <telerik:RadGrid ID="RadGrid1" OnPreRender="RadGrid1_PreRender" DataSourceID="SqlDataSource1"
        runat="server" AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False"
        AllowPaging="True" PageSize="5" GridLines="None" ShowGroupPanel="true" OnItemCreated="RadGrid1_ItemCreated"
        <PagerStyle Mode="NumericPages"></PagerStyle>
        <MasterTableView DataSourceID="SqlDataSource1" DataKeyNames="EmployeeID" AllowMultiColumnSorting="True"
                <telerik:GridTemplateColumn HeaderText="Book">
                        <asp:LinkButton ID="BookButton" runat="server" Text="Book Now" OnClientClick="OnClientClick();return false;" />
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Vista">
    <telerik:RadWindow ID="RadWindow1" runat="server" Title="User List Dialog"
        Height="500px" Width="300px" Left="150px" />

    <script type="text/javascript">
        function OnClientClick() {
            radopen(null, "RadWindow1");
            var win = $find("<%=RadWindow1.ClientID %>");

Back to Top