PDA

View Full Version : does extjs4 has dropped feature of markDirty:false to hide red triangle ?



rkim
1 Dec 2011, 9:59 AM
does extjs4 has dropped feature of markDirty:false to hide red triangle ?

mitchellsimoens
1 Dec 2011, 10:51 AM
No... did you just change the property on the record or did you execute commit()?

ankit_shahin
5 Dec 2011, 11:44 PM
Hi
I am using a checkColumn for one of my grid and I do not want Red triangle to appear when someone checks/unchecks checkbox. we have markDity:false in ExtJs3..
How do we do it in EctJS4 ?

ankit_shahin
6 Dec 2011, 1:24 AM
Hi,
I found the solution in on of the post, it says we need to create a new feature to disable the CSS. it worked for me.

Ext.define(

NoMarkDirtyFeature', {extend: 'Ext.grid.feature.Feature',mutateMetaRowTpl: function(metaRowTpl) {metaRowTpl[2] = metaRowTpl[2].replace(/\{\{id\}\-modified\}/, '');}
});


and than in grid use following.

var noDirtyMarkFeature = Ext.create('PV.shared.features.NoMarkDirtyFeature');


features: [
noDirtyMarkFeature,
... rest of the features.

tobiu
6 Dec 2011, 8:29 AM
we have just opened a ticket to get the functionality back -> EXTJSIV-4644

wininie
20 Apr 2012, 5:59 AM
Fix in 4.1.0
For information, here how to use it :

var grid = Ext.create('Ext.grid.Panel', {
..... // config
,viewConfig : {
markDirty : false
}
});

(Not in documentation)