Gridpanel - Summary Feature - Throws " Unable to get value of the property 'rowIndex': object is null or undefined"

  1. #1

    Gridpanel - Summary Feature - Throws " Unable to get value of the property 'rowIndex': object is null or undefined"

    I have a simple gridpanel - with a summary feature - I have a componentcolumn - which whorked great, until I dropped the summary in - now, the componentColumn throws: " Unable to get value of the property 'rowIndex': object is null or undefined" - works fine without adding the simple summary below - but as soon as I add the summary - the error occurs?

    Here is the column
     <ext:ComponentColumn ID="ComponentColumn1" runat="server" Editor="true" DataIndex="Quantity"
                                                Width="45" Align="Right" Text="Qty">
                                                <Component>
                                                    <ext:NumberField ID="NumberField1" MinValue="1" AllowDecimals="false" AllowBlank="false"
                                                        Width="45" Align="Right" runat="server">
                                                        <Listeners>
                                                            <Blur Handler="Ext.getCmp('GridPanel2').store.commitChanges();" />
                                                            <Focus Handler="Ext.getCmp('GridPanel2').store.commitChanges();" />
                                                        </Listeners>
                                                    </ext:NumberField>
                                                </Component>
                                            </ext:ComponentColumn>
    Here is the feature:
    <Features>
                                        <ext:Summary runat="server" ID="Summary1">
                                        </ext:Summary>
                                    </Features>
  2. #2
    here is my full gridpanel -


    <ext:GridPanel ID="GridPanel2" runat="server">
                                    <ColumnModel ID="ColumnModel1" runat="server">
                                        <Columns>
                                            <ext:SummaryColumn ID="Column1" runat="server" Text="CPT<br>Code" DataIndex="Code"
                                                Width="50" Sortable="false" SummaryType="None">
                                            </ext:SummaryColumn>
                                            <ext:SummaryColumn ID="Column2" runat="server" Text="Estimated<br>Charge" DataIndex="EstimatedCharge"
                                                Width="65" Sortable="false" SummaryType="Sum">
                                                <Renderer Handler="return accounting.formatMoney(record.data.EstimatedCharge * record.data.Quantity);" />
                                                <SummaryRenderer Handler="return accounting.formatMoney(record.data.EstimatedCharge * record.data.Quantity);" />
                                            </ext:SummaryColumn>
                                            
                                            <ext:ComponentColumn ID="ComponentColumn1" runat="server" Editor="true" DataIndex="Quantity"
                                                Width="45" Align="Right" Text="Qty">
                                                <Component>
                                                    <ext:NumberField ID="NumberField1" MinValue="1" AllowDecimals="false" AllowBlank="false"
                                                        Width="45" Align="Right" runat="server">
                                                        <Listeners>
                                                            <Blur Handler="Ext.getCmp('GridPanel2').store.commitChanges();" />
                                                            <Focus Handler="Ext.getCmp('GridPanel2').store.commitChanges();" />
                                                        </Listeners>
                                                    </ext:NumberField>
                                                </Component>
                                            </ext:ComponentColumn>
                                            <ext:ImageCommandColumn ID="ImageCommandColumn1" runat="server" Width="18" Align="Center"
                                                Sortable="false">
                                                <Commands>
                                                    <ext:ImageCommand Icon="Calculator" CommandName="edit" ToolTip-Text="Click Here to Edit Processing">
                                                    </ext:ImageCommand>
                                                </Commands>
                                                <Listeners>
                                                    <Command Handler="if (command == 'edit') {document.getElementById('hdnCode').value = record.data.Code;winCalcShow();}" />
                                                </Listeners>
                                            </ext:ImageCommandColumn>
                                            <ext:ImageCommandColumn ID="ImageCommandColumn2" runat="server" Width="18" Align="Center"
                                                Sortable="false">
                                                <Commands>
                                                    <ext:ImageCommand Icon="Delete" CommandName="delete" ToolTip-Text="Click Here to delete this item">
                                                    </ext:ImageCommand>
                                                </Commands>
                                                <Listeners>
                                                    <Command Handler="if (command == 'delete') {#{storeTarget}.remove(record);}" />
                                                </Listeners>
                                            </ext:ImageCommandColumn>
                                        </Columns>
                                    </ColumnModel>
                                    <Store>
                                        <ext:Store ID="storeTarget" runat="server">
                                            <Sorters>
                                                <ext:DataSorter Property="Code" Direction="ASC" />
                                            </Sorters>
                                            <Proxy>
                                                <ext:AjaxProxy Url="WebService.asmx/GetProcedures">
                                                    <ActionMethods Read="POST" />
                                                    <Reader>
                                                        <ext:XmlReader Record="Procedures" IDProperty="Code" />
                                                    </Reader>
                                                    <ExtraParams>
                                                        <ext:Parameter Name="dbName" Value="" Mode="Value" />
                                                        <ext:Parameter Name="search" Value="" Mode="Value" />
                                                        <ext:Parameter Name="contractID" Value="-2" Mode="Value" />
                                                        <ext:Parameter Name="type" Value="Single" Mode="Value" />
                                                    </ExtraParams>
                                                </ext:AjaxProxy>
                                            </Proxy>
                                            <Model>
                                                <ext:Model ID="Model2" runat="server">
                                                    <Fields>
                                                        <ext:ModelField Name="Code" Type="String" />
                                                        <ext:ModelField Name="Quantity" Type="String" />
                                                        <ext:ModelField Name="SourceType" Type="String" />
                                                        <ext:ModelField Name="Description" Type="String" />
                                                        <ext:ModelField Name="CDMDescription" Type="String" />
                                                        <ext:ModelField Name="MarketLow" />
                                                        <ext:ModelField Name="MarketAverage" />
                                                        <ext:ModelField Name="MarketHigh" />
                                                        <ext:ModelField Name="InsuranceReimbursement" />
                                                        <ext:ModelField Name="InsuranceCoPay" />
                                                        <ext:ModelField Name="Status" Type="String" />
                                                        <ext:ModelField Name="EstimatedCharge" Type="Float" />
                                                        <ext:ModelField Name="CDMCode" />
                                                    </Fields>
                                                </ext:Model>
                                            </Model>
                                        </ext:Store>
                                    </Store>
                                    <View>
                                        <ext:GridView ID="GridView1" runat="server">
                                            <Listeners>
                                                <ItemMouseDown Fn="onItemMouseDown" />
                                            </Listeners>
                                        </ext:GridView>
                                    </View>
                                    <Features>
                                        <ext:Summary ID="Summary1" runat="server" />
                                    </Features>
                                    <SelectionModel>
                                        <ext:RowSelectionModel ID="RowSelectionModel1" runat="server" Mode="Single" />
                                    </SelectionModel>
                                    <Plugins>
                                        <ext:RowExpander ID="RowExpander1" runat="server">
                                            <Template ID="Template1" runat="server">
                                                <Html>
                                                    <div class="txt-normal-details">
                                                    <b>Calculation Method:</b> {CalcMethod}
                                                    <br />
                                                    <b>Market Low:</b> {MarketLow}
                                                    <br />
                                                    <b>Market Avg:</b> {MarketAverage}
                                                    <br />
                                                    <b>Market High:</b> {MarketHigh}
                                                    <br />
                                                    <b>AddB Description:</b> {Description}
                                                    </div>
                                                </Html>
                                            </Template>
                                        </ext:RowExpander>
                                    </Plugins>
                                    <TopBar>
                                        <ext:Toolbar runat="server" ID="tb11" Border="false">
                                            <Items>
                                                <ext:ToolbarFill />
                                                <ext:Button ID="Button2" runat="server" Icon="Disk" Text="Save Quote/Generate Estimate">
                                                    <Listeners>
                                                        <Click Handler="validateBeforeSave();" />
                                                    </Listeners>
                                                    <ToolTips>
                                                        <ext:ToolTip ID="ToolTip6" runat="server" Html="Click to Save This Quote and Generate the Estimate" />
                                                    </ToolTips>
                                                </ext:Button>
                                            </Items>
                                        </ext:Toolbar>
                                    </TopBar>
                                </ext:GridPanel>

Similar Threads

  1. Replies: 0
    Last Post: Oct 26, 2012, 7:48 AM
  2. Replies: 1
    Last Post: Oct 25, 2012, 1:47 PM
  3. Replies: 1
    Last Post: Jul 22, 2011, 5:34 PM
  4. [CLOSED] GridPanel / Renderer : Property "undefined"?
    By wagger in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: May 03, 2011, 8:50 PM
  5. Replies: 4
    Last Post: Apr 29, 2011, 6:49 PM

Posting Permissions