1. #1
    Sencha User
    Join Date
    Aug 2010
    Location
    Bangalore
    Posts
    11
    Vote Rating
    0
    Vamsi KP is on a distinguished road

      0  

    Default reconfiguring plugins after grid reconfigure in gridpanel

    reconfiguring plugins after grid reconfigure in gridpanel


    Hi,

    I need to reconfigure summary plugin after grid reconfigure. Can anyone let me know how to do the reconfiguring of summary plugin after grid reconfigure

    below is the reconfig code.
    var GRIDCM = new Ext.grid.ColumnModel({
    defaults: {
    width: 120,
    sortable: true
    },
    columns: [{dataIndex: 'start_date',header: 'Start Date',width: 100, align: 'left', tp:'string',renderer:Ext.util.Format.dateRenderer('m/d/Y')},
    {dataIndex: 'end_date',header: 'End Date',width: 100, align: 'left', tp:'string',renderer:Ext.util.Format.dateRenderer('m/d/Y')},
    {dataIndex: 'Status',header: 'Status',width: 100, align: 'left', tp:'string'},
    {dataIndex: 'eom_booked',header: 'EOM Booked',width: 100,align: 'right', renderer: usMoneyWODecimalNFT, tp:'decimal',summaryType: 'sum'},
    {dataIndex: 'mtd_ama',header: 'MTD AMA',width: 100,align: 'right', renderer: usMoneyWODecimalNFT, tp:'decimal',summaryType: 'sum'},]
    });
    this.NFTGrid.reconfigure(this.NFTGridStore, GRIDCM);

    ====
    Thanks & Regards
    Hari

  2. #2
    Sencha User
    Join Date
    Aug 2010
    Location
    Bangalore
    Posts
    11
    Vote Rating
    0
    Vamsi KP is on a distinguished road

      0  

    Default


    is anyone having any about this. Pls help I got stuck in this

  3. #3
    Sencha User
    Join Date
    Aug 2010
    Location
    Bangalore
    Posts
    11
    Vote Rating
    0
    Vamsi KP is on a distinguished road

      0  

    Cool Solved

    Solved


    Hi All,

    I solved this. Here is the solution.

    this.NFTGrid.plugins[0].cm = GridCM; - In this I am giving new column model to the grid so that it won't give any error. When we do the reconfig.
    this.NFTGrid.reconfigure(this.NFTGridStore,GridCM); - Reconfig with new column model and store
    this.NFTGrid.plugins[0].init(this.NFTGrid); - calling plugin constructor. So that it will work fine.

    I used this for summary plugin.

    =====
    Thanks & Regards
    Hari

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar