'Ext.Net.Column' does not have a public property named 'SummaryRenderer'.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    'Ext.Net.Column' does not have a public property named 'SummaryRenderer'.

    Hello,

    I'm using Ext.NET 2.5.

    I coped the code of this page:

    https://examples2.ext.net/#/GridPanel/Plugins/Summary/

    But I got error as shown in (Error.png) attached.

    Page code is attached is like this:

    <%@ Page Title="" Language="VB" MasterPageFile="~/Apps/UC/MasterPage.master" AutoEventWireup="false" CodeFile="Manage_Invoice_Registration.aspx.vb" Inherits="Apps_UC_Manage_Invoice_Registration" %>
    
    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <ext:Viewport runat="server" Layout="BorderLayout">
            <Items>
                <ext:Panel
                    runat="server"
                    Region="Center"
                    AutoScroll="true"
                    Layout="FitLayout"
                    Header="false"
                    Cls="my-carousel" 
                    Frame="true">
                        <Items>
                            <ext:GridPanel
                                runat="server"
                                ID="InvoiceRegistrationGv"
                                ClientIDMode="Static"
                                AutoScroll="false"
                                Title="Shops List"
                                EmptyText="No invoice registered"
                                Header="true"
                                Frame="false">
    	                        <Store>
    		                        <ext:Store
                                        runat="server" >
    			                        <Model>
    				                        <ext:Model runat="server" IDProperty="ID"  >
    					                        <Fields>
    						                        <ext:ModelField Name="ID" />
    						                        <ext:ModelField Name="CouponID" />
                                                    <ext:ModelField Name="CouponNum" /> 
                                                    <ext:ModelField Name="ShopEnName" />
                                                    <ext:ModelField Name="ArName" />
                                                    <ext:ModelField Name="Email" /> 
                                                    <ext:ModelField Name="Mobile" />
    						                        <ext:ModelField Name="InvoiceAmount"  Type="Float" />
    						                        <ext:ModelField Name="RoundInvoiceAmount" />
                                                    <ext:ModelField Name="InvoicePath" /> 
                                                    <ext:ModelField Name="AddDate" />
                                                    <ext:ModelField Name="AddTime" />
                                                    <ext:ModelField Name="IsApprovedTitle" />
                                                    <ext:ModelField Name="IsApproved" /> 
                                                    <ext:ModelField Name="ApprovedByID" />
                                                    <ext:ModelField Name="EmailSent" />
                                                    <ext:ModelField Name="ApproveDate" /> 
                                                    <ext:ModelField Name="ApproveTime" />
                                                    <ext:ModelField Name="EnquiryCount" />
    					                        </Fields>
    				                        </ext:Model>
    			                        </Model>
    		                        </ext:Store>
    	                        </Store>
    	                        <ColumnModel runat="server">
    		                        <Columns>
    			                        <ext:RowNumbererColumn Header="#" Width="40" runat="server"  Align="Center" />           
                                        <ext:Column runat="server" Width="100" Align="Center"  Text="Coupon</br>Number" DataIndex="CouponNum"  />                                    
                                        <ext:Column runat="server" Flex="1" Align="Center"  Text="Shop Name" DataIndex="ShopEnName" />
                                        <ext:Column runat="server" Flex="1" Align="Center"  Text="Participant Name" DataIndex="ArName" >
                                            <Editor>
    					                        <ext:TextField 
    							                        runat="server" 
    							                        AllowBlank="false"
                                                        BlankText="Participant Name is required"
    							                        ClientIDMode="Static"
    							                        ID="txtArName_Edit" 
    							                        LabelAlign="Left" />
                                            </Editor>
                                        </ext:Column>
                                        <ext:Column runat="server" Width="90" Align="Center"  Text="Mobile" DataIndex="Mobile" >
                                            <Editor>
    					                        <ext:TextField 
    							                        runat="server" 
    							                        AllowBlank="false"
                                                        BlankText="Mobile is required"
    							                        ClientIDMode="Static"
    							                        ID="txtMobile_Edit" 
    							                        LabelAlign="Left" />
                                            </Editor>
                                        </ext:Column>
                                        <ext:Column runat="server"  Width="100" Align="Center"  Text="Invoice</br>Amount" DataIndex="InvoiceAmount"
                                            SummaryType="Sum" CustomSummaryType="totalIncome" >  
                                            <SummaryRenderer Fn="return '&nbsp;';" />
                                            <Editor>
    					                        <ext:TextField 
    							                        runat="server" 
    							                        AllowBlank="false"
                                                        BlankText="Invoice Amount is required"
    							                        ClientIDMode="Static"
    							                        ID="txtInvoiceAmount_Edit" 
    							                        LabelAlign="Left" />
                                            </Editor>
                                            
                                        </ext:Column>
                                        <ext:Column runat="server" Width="100" Align="Center"  Text="Repetition</br>Value" DataIndex="RoundInvoiceAmount" >
                                        </ext:Column>
                                        <ext:Column runat="server" Width="120" Align="Center"  Text="Status" DataIndex="IsApprovedTitle" >
                                            <Renderer Fn="changeInvoiceStatus" />
                                        </ext:Column>
                                        <ext:CommandColumn runat="server" Width="130">
                                            <Commands>
                                                <ext:GridCommand Icon="Tick" CommandName="Approve">
                                                    <ToolTip Text="Approve"></ToolTip>
                                                </ext:GridCommand>
                                                <ext:GridCommand Icon="BulletCross" CommandName="RevokeApproval">
                                                    <ToolTip Text="Cancel Approval"></ToolTip>
                                                </ext:GridCommand>
                                                <ext:GridCommand Icon="Delete" CommandName="Delete">
                                                    <ToolTip Text="Delete"></ToolTip>
                                                </ext:GridCommand>
                                                <ext:GridCommand Icon="AwardStarBronze3" CommandName="CreateCoupon">
                                                    <ToolTip Text="Create Coupon"></ToolTip>
                                                </ext:GridCommand> 
                                                <ext:GridCommand Icon="Magnifier" CommandName="View">
                                                    <ToolTip Text="View Invoice"></ToolTip>
                                                </ext:GridCommand>                                 
                                            </Commands>
                                            <PrepareToolbar Fn="prepareInvoiceGridToolbar" />
    				                        <Listeners>
    					                        <Command  Handler="if(command == 'Delete') { Ext.Msg.confirm('Confirm', 'Are you sure you want to delete participant (' + record.data.ArName + ')? ', function (btn, text) {if (btn == 'yes') { #{DirectMethods}.routeCommand(command, record.data.ID, record.data.InvoicePath, record.data.IsApproved, record.data.RoundInvoiceAmount, record.data.ArName, record.data.ShopEnName, record.data.InvoiceAmount, record.data.Email);} }); } else if (command == 'CreateCoupon') { #{DirectMethods}.routeCommand(command, record.data.ID,record.data.InvoicePath, record.data.IsApproved,record.data.RoundInvoiceAmount,record.data.ArName, record.data.ShopEnName, record.data.InvoiceAmount, record.data.Email, { eventMask: { showMask: true, minDelay: 500, msg: 'Creating Coupons...'}}); } else if (command == 'View' || command == 'Approve' || command == 'RevokeApproval') { #{DirectMethods}.routeCommand(command, record.data.ID,record.data.InvoicePath, record.data.IsApproved, record.data.RoundInvoiceAmount, record.data.ArName, record.data.ShopEnName, record.data.InvoiceAmount, record.data.Email); }" />
    				                        </Listeners>
    			                        </ext:CommandColumn>
    		                        </Columns>
    	                        </ColumnModel>
                                <Features>
                                    <ext:GroupingSummary
                                        ID="group"
                                        runat="server"
                                        GroupHeaderTplString="{name}"
                                        HideGroupedHeader="true"
                                        EnableGroupingMenu="true"
                                        ShowSummaryRow="true">                                    
                                    </ext:GroupingSummary>
                                   <ext:Summary ID="summaryTotal" runat="server" Dock="Bottom">
                                   </ext:Summary>
                                </Features>
                                <SelectionModel>
                                    <ext:RowSelectionModel runat="server" Mode="Single">
                                        <Listeners>
                                            <Select Handler="if (#{InvoiceRegistrationGv}.isVisible()) {#{ParticipantCouponNumbersGVStore}.reload();}" Buffer="250" />
                                        </Listeners>
                                    </ext:RowSelectionModel>
                                </SelectionModel>
                                <Plugins>
                                    <ext:RowEditing runat="server" CancelBtnText="Cancel" ClicksToEdit="2" ClicksToMoveEditor="2" SaveBtnText="Update" >
                                        <DirectEvents>
                                            <Edit OnEvent="updateInvoiceInfo">
                                                <ExtraParams>
                                                    <ext:Parameter Name="RegistrationID" Value="e.record.data.ID" Mode="Raw" Encode="true" />
                                                    <ext:Parameter Name="ArName" Value="#{txtArName_Edit}.getValue()" Mode="Raw" Encode="false" />
                                                    <ext:Parameter Name="Mobile" Value="#{txtMobile_Edit}.getValue()" Mode="Raw" Encode="false" />
                                                    <ext:Parameter Name="InvoiceAmount" Value="#{txtInvoiceAmount_Edit}.getValue()" Mode="Raw" Encode="false" />                                                
                                                    <ext:Parameter Name="IsApproved" Value="e.record.data.IsApproved" Mode="Raw" Encode="false" />
                                                </ExtraParams>
                                            </Edit>
                                        </DirectEvents>
                                    </ext:RowEditing>  
                                    <ext:RowExpander ID="RowExpander1" runat="server">
                                        <Template ID="Template1" runat="server">
                                            <Html>
                                                <table  style="width:700px;" id="hor-minimalist-a">
                                                    <tr>
                                                        <td style="width:150px;"><b>Email:</b></td><td>{Email}</td>
                                                    </tr>
                                                    <tr>
                                                        <td><b>Registration Date:</b></td><td>{AddDate}</td>
                                                    </tr>
                                                    <tr>
                                                        <td><b>Registration Time:</b></td><td>{AddTime}</td>
                                                    </tr> 
                                                    <tr>
                                                        <td><b>Approve Date:</b></td><td>{ApproveDate}</td>
                                                    </tr>
                                                    <tr>
                                                        <td><b>Approve Time:</b></td><td>{ApproveTime}</td>
                                                    </tr>                                        
                                                </table>
                                            </Html>
                                        </Template>
                                    </ext:RowExpander>
                                </Plugins>
    	                        <BottomBar>
    		                        <ext:PagingToolbar runat="server" />
    	                        </BottomBar>   
                            </ext:GridPanel>
                        </Items>
               </ext:Panel>        
                <ext:Panel
                    runat="server"
                    Region="South"
                    Collapsible="true"
                    Title="Participant Coupon Numbers"
                    Header="true"
                    Height="250"
                    Frame="true"
                    Layout="BorderLayout">
                        <Items>
                            <ext:GridPanel
                                runat="server"                            
                                ID="ParticipantCouponNumbersGV"  
                                Region="Center"
                                ClientIDMode="Static"                           
                                EmptyText="No coupons found to selected participant yet"
                                Header="false"
                                Frame="false">
    	                        <Store>
    		                        <ext:Store
                                        ID="ParticipantCouponNumbersGVStore"
                                        runat="server"
                                        ClientIDMode="Static"
                                        OnReadData="ParticipantCouponNumbersGVStore_Refresh">
    			                        <Model>
    				                        <ext:Model runat="server"  >
    					                        <Fields>
    						                        <ext:ModelField Name="ID" />
    						                        <ext:ModelField Name="ParticipantID" />
                                                    <ext:ModelField Name="CouponSerial" /> 
    					                        </Fields>
    				                        </ext:Model>
    			                        </Model>
                                        <Parameters>
                                            <ext:StoreParameter
                                                Name="ID"
                                                Value="#{InvoiceRegistrationGv}.getSelectionModel().hasSelection() ? #{InvoiceRegistrationGv}.getSelectionModel().getSelection()[0].data.ID : -1"
                                                Mode="Raw"
                                                />
                                        </Parameters>
    		                        </ext:Store>
    	                        </Store>
      	                        <ColumnModel runat="server">
    		                        <Columns>
    			                        <ext:RowNumbererColumn Header="#" Width="40" runat="server"  Align="Center" />           
                                        <ext:Column runat="server" MinWidth="90" Flex="1" Align="Center"  Text="Coupon Numbers" DataIndex="CouponSerial"  >
                                        </ext:Column>
    		                        </Columns>
    	                        </ColumnModel> 
                            </ext:GridPanel> 
                        </Items>
               </ext:Panel>        
            </Items>
        </ext:Viewport>
    
                <ext:Window 
                    ID="ViewInvoiceWindow" 
                    runat="server" 
                    Icon="MoneyDollar"
                    Hidden="true"
                    Closable="true"
                    Title="Invoice Viewer"
                    AutoScroll="true"
                    Scroll="Both"
                    Width="1000"
                    Height="500"
                    ClientIDMode="Static"
                    Resizable="true"
                    BodyStyle="background-color:#fff;"
                    BodyPadding="0"
                    Layout="Form">
                        <Listeners>
                            <Show Handler="positionWindow(this);"/>
                        </Listeners>
                        <Items>
                            <ext:Image
                                ID="AttachmentViwerImg"
                                AllowPan="false"
                                ClientIDMode="Static"
                                runat="server"
                                ImageUrl="../../Images/Blank-Photo.png">
                            </ext:Image>
                        </Items>
                </ext:Window>
    </asp:Content>
    
    Please, help me, what is wrong?
    Attached Thumbnails Click image for larger version. 

Name:	Error.png 
Views:	164 
Size:	55.5 KB 
ID:	25340  

Similar Threads

  1. [CLOSED] Ext.Net.MultiSelectListeners does not have a public property named AfterDrop
    By AdvanceLoanTechnologies in forum 4.x Legacy Premium Help
    Replies: 5
    Last Post: Jun 23, 2017, 6:45 PM
  2. Replies: 3
    Last Post: Jan 04, 2017, 11:27 PM
  3. Replies: 3
    Last Post: Jan 09, 2014, 5:27 AM
  4. Replies: 0
    Last Post: Nov 12, 2013, 8:08 PM
  5. Replies: 3
    Last Post: Jul 02, 2012, 8:27 AM

Posting Permissions