1. #1
    Ext JS Premium Member
    Join Date
    Sep 2011
    Posts
    64
    Vote Rating
    1
    northbridge is on a distinguished road

      0  

    Default How to combine rowexpander and roweditor plugins?

    How to combine rowexpander and roweditor plugins?


    I'm trying to combine roweditor and rowexpander plugins. When I double click a row, I'm getting coumn.getEditor is not a function. How do I combine both plugins?


    Code:
     
    this.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
                clicksToMoveEditor: 1,
                autoCancel: false,
                clicksToEdit:2
            });
    
    
    
    
    
    
    this.mileStoneGrid = new Ext.grid.GridPanel({            store: this.gridStore,          
                plugins: [
                    this.rowEditing,
                    {
                        ptype: 'rowexpander',
                        rowBodyTpl: [
                                        '<p>Definition: {Definition}</p>'
                                    ]
                    }
                ],
    columns:[{                text: "Order Number",
                    width: 45,
                    dataIndex: 'ItemOrder',
                    sortable: false,
                    id: 'msOrderNumber'
                }, {
                    text: "Item Name",
                    width: 300,
                    dataIndex: 'ItemName'
                },
                   {
                       text: "Planned Date",
                       width: 70,
                       dataIndex: 'ScheduledDate',
                       id: 'msPlannedDate',
                       editor: { xtype: 'datefield' }
                   }, {
                       text: "Actual Date",
                       width: 70,
                       dataIndex: 'ActualDate',
                       id: 'msActualDate',
                       editor: { xtype: 'datefield' }
                   }]
    }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,754
    Vote Rating
    827
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Looks like this is working in 4.1.0 beta 1 now.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jan 2009
    Location
    Colombia
    Posts
    6
    Vote Rating
    0
    leonardodaza is on a distinguished road

      0  

    Default Hi... Which is the code fix? Thanks!

    Hi... Which is the code fix? Thanks!


    What files change to fix the problem of combine rowexpander and roweditor?

  4. #4
    Sencha User
    Join Date
    Feb 2012
    Posts
    16
    Vote Rating
    0
    matscher is on a distinguished road

      0  

    Default


    I'm also interested in a solution of this problem. Can anyone give an answer ?

    Regards!

  5. #5
    Sencha User
    Join Date
    Mar 2010
    Posts
    12
    Vote Rating
    0
    dwr is on a distinguished road

      0  

    Default


    I am using 4.1 stable and the problem persists. Would love to get a solution for this w/o hacking ext-all.js

    an option would be injecting check for editor existance or field data before calling getEditor. but would be nice to get official fix. Thanks

  6. #6
    Sencha User
    Join Date
    Mar 2010
    Posts
    12
    Vote Rating
    0
    dwr is on a distinguished road

      0  

    Default


    found solution. easy. change the order of plugins

    Code:
    {
    xtype: 'grid',
    plugins: [
    {
    ptype: 'rowexpander', expandOnDblClick: false, rowBodyTpl : ['']
    },
    Ext.create('Ext.grid.plugin.RowEditing', {ptype: 'rowediting'})
    ] }

  7. #7
    Sencha User
    Join Date
    Mar 2010
    Posts
    12
    Vote Rating
    0
    dwr is on a distinguished road

      0  

    Default


    though found another bug not that critical but still exists:

    when both plugins are used, rows/fields with modified records are not being marked with the red triangle. though its cosmetic bug still kind of not that nice.

    any ideas how to fix it?

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."