Results 1 to 2 of 2

Thread: GridView markDirty Config no longer works.

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8222 in 4.2.0.489.
  1. #1
    Sencha User Stormseeker's Avatar
    Join Date
    Jan 2010
    Location
    Evanston, Illinois
    Posts
    59

    Default GridView markDirty Config no longer works.

    It appears that the following markDirty configuration doesn't do anything anymore in V4.2 Beta2:

    Code:
    Ext.define('QLP.view.permission.ActionGrid', {
        extend    : 'Ext.grid.Panel',
    
        title        : 'Assigned Actions',
        viewConfig    : {
            markDirty    : false
        }
       ...
    });
    I believe the code to control this existed in V4.1.1 in the Ext.grid.header.Container class. The prepareData() method in that class is totally removed in V4.2 Beta.
    Code:
        /**
         * Maps the record data to base it on the header id's.
         * This correlates to the markup/template generated by
         * TableChunker.
         */
        prepareData: function(data, rowIdx, record, view, panel) {
        ...
                if (me.markDirty) {
                    obj[headerId + '-modified'] = record.isModified(header.dataIndex) ? Ext.baseCSSPrefix + 'grid-dirty-cell' : '';
                }
        ...

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    Thanks for the report, this has been fixed for the next release.
    Mitchell Simoens @LikelyMitch

    Check out my GitHub:
    https://github.com/mitchellsimoens

    Posts are my own, not any current, past or future employer's.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •