Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
515
TypeError: row is undefined when expanding a row () v15.1 with Column fixing
posted

I seen another post where this was fixed in v14, I'm not sure if it's back or if it's another error. I put on column fixing to support zooming in Chrome.

When I expand the row i get a "TypeError: row is undefined" in the console. Seems to be at ...

__getResizeRowElement: function (row)
    {
        if (this._elements["sizeRow"])
            return this._elements["sizeRow"];
        else
            return row.get_element();
    },

    _onShowHorizontalScrollBar: function (event)
    {
        var scrollDiv = null;
        if (this._grid._rows.get_length() < 1)
            scrollDiv = this.__getFirstScrollDiv();
        else
        {
            var row = this._grid.__getResizeRowElement(this._grid._rows.get_row(0));
            index = this.__findColsSpanIndex(row);
            if (index != null && index > -1 && index < row.childNodes.length)
                scrollDiv = row.childNodes[index].firstChild;
        }....

seems to be from putting on column fixing, if i put it on the base grid or on the bands i get the error

 <ig:ColumnFixing Enabled="true" ShowFixButtons="false" />

 <ig:WebHierarchicalDataGrid runat="server" ID="whgEquipment" AutoGenerateBands="false" AutoGenerateColumns="false" ClientEvents-DoubleClick="OpenOrderWindow"
                    DataKeyFields="ID" Width="100%"  InitialDataBindDepth="-1" EnableViewState="false" ViewStateMode="Enabled" ClientEvents-Initialize="SetTimeout" >
                    <Behaviors>
                        <ig:Sorting Enabled="true" />
                        <ig:ColumnResizing Enabled="true" />
                        <ig:ColumnMoving Enabled="true" />
                        <ig:Filtering FilterType="RowFilter" />
                    </Behaviors>
                      <Columns>
                        <ig:BoundDataField Key="ID" DataFieldName="ID" Hidden="true" CssClass="AddLeftColumnBorder"/>
                        <ig:BoundDataField DataFieldName="Text" Key="Text"  CssClass="AddLeftColumnBorder" />
                         </Columns>
                    <Bands>
                   <ig:Band DataKeyFields="ID" DataMember="FilteredOrders" Width="1500px"  AutoGenerateColumns="false">
                   <Behaviors>
                       <ig:ColumnFixing Enabled="true" ShowFixButtons="false" />
                     <ig:ColumnResizing Enabled="true" />
                   <ig:EditingCore Enabled="true">
                            <Behaviors>
                            <ig:CellEditing Enabled="true">
                                    <ColumnSettings>
                                        <ig:EditingColumnSetting ColumnKey="ESTIMATENUM" ReadOnly="true" />
                                        <ig:EditingColumnSetting ColumnKey="MATNAME" ReadOnly="true" />
                                        <ig:EditingColumnSetting ColumnKey="CUSTOMER" ReadOnly="true" />
                                        <ig:EditingColumnSetting ColumnKey="EQUIP" ReadOnly="true" />
                                        <ig:EditingColumnSetting ColumnKey="RECEIVEDDATE" ReadOnly="true" />
                                        <ig:EditingColumnSetting ColumnKey="REVENUE" ReadOnly="true" />
                                        <ig:EditingColumnSetting ColumnKey="EXPENSES" ReadOnly="true" />
                                        <ig:EditingColumnSetting ColumnKey="COMMENTS" ReadOnly="true" />
                                        <ig:EditingColumnSetting ColumnKey="STATUSID" EditorID="ddpStatus" ReadOnly="true" />
                                    </ColumnSettings>
                                </ig:CellEditing>
                            </Behaviors>
                        </ig:EditingCore>
                   </Behaviors>
                    <Columns>
                        <ig:BoundDataField Key="ID" DataFieldName="ID" Hidden="true" CssClass="AddLeftColumnBorder"/>
                        <ig:BoundDataField DataFieldName="UNIT" Key="UNIT" Header-Text="Fleet Number" CssClass="AddLeftColumnBorder" />
                        <ig:BoundDataField DataFieldName="NAME" Key="NAME" Header-Text="Name"  CssClass="AddLeftColumnBorder" />
                        <ig:BoundDataField DataFieldName="Type" Key="Type" Header-Text="Category"  CssClass="AddLeftColumnBorder"/>
                        <ig:BoundDataField DataFieldName="Manufacturer" Key="Manufacturer" Header-Text="Manufacturer" CssClass="AddLeftColumnBorder" />
                        <ig:BoundDataField DataFieldName="SHORTDESCRIPTION" Key="SHORTDESCRIPTION" Header-Text="Description" CssClass="AddLeftColumnBorder" />
                        <ig:BoundDataField DataFieldName="STATUS" Key="STATUS" Header-Text="Status" CssClass="AddLeftColumnBorder" />
                        <ig:BoundDataField DataFieldName="STATUSBY" Key="STATUSBY" Header-Text="By" CssClass="AddLeftColumnBorder" />
                        <ig:BoundDataField DataFieldName="BUSINESSUNIT" Key="BUSINESSUNIT" Header-Text="Last Parked" CssClass="AddLeftColumnBorder" />
                        <ig:BoundDataField DataFieldName="LASTSHIFTDATE" Key="LASTSHIFTDATE" Header-Text="Last Shift" CssClass="AddLeftColumnBorder" />
                        <ig:BoundDataField DataFieldName="HOURMETER" Key="HOURMETER" Header-Text="Last Meter" CssClass="AddLeftColumnBorder" />
                    </Columns>
                    </ig:Band>
                    </Bands>
                </ig:WebHierarchicalDataGrid>