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>

Parents
  • 25665
    Offline posted

    Hello,

    Thank you for contacting Infragistics!

    So far I have been unable to reproduce the error you are seeing. What is the service release number you are using for v15.1? Do you do anything before expanding the row, such as fixing a column?

Reply Children
  • 25665
    Offline posted in reply to Derek Macdonald

    Hello,

    After looking into column fixing in the WebHierarchicalDataGrid and doing some research, column fixing in the WebHiearchicalDataGrid has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.

    There are many benefits to submitting a product idea:

    -          Direct communication with our product management team regarding your product idea.
    -          Notifications whenever new information regarding your idea becomes available.
    -          Ability to vote on your favorite product ideas to let us know which ones are the most important to you.  You will have ten votes for this and can change which ideas you are voting for at any time.
    -          Allow you to shape the future of our products by requesting new controls and products altogether.
    -          You and other developers can discuss existing product ideas with members of our Product Management team.

    Steps to create your idea:
                   
    1.       Log into the Infragistics Product Idea site at http://ideas.infragistics.com (creating a new login if needed).
    2.       Navigate to the product / platform channel of your choice (e.g. WPF, Windows Forms, ASP.NET, HTML5 / Ignite UI, iOS / NucliOS, etc.)
    3.       Add your product idea and be sure to be specific and provide as much detail as possible.
    • Explain the context in which a feature would be used, why it is needed, why it can’t be accomplished today, and who would benefit from it. You can even add screenshots to build a stronger case. Remember that for your suggestion to be successful, you need other members of the community to vote for it. Be convincing!
    • Include a link to this thread in your idea so product management will be able to look back at this case. 

    The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.

    Thank you for contacting Infragistics.