ExtJS 3.x: How to disable the red mark indicating a dirty record in ExtJS EditorGridPanel

前提是你 提交于 2019-12-11 03:17:21

问题


EditorGridPanel shows a small red triangular corner on the column that is edited to indicate an unsaved record.

Since I am using autoSave, I don't need to indicate the record as dirty/unsaved.

Is there an easy way to disable this ?


回答1:


See this :

http://www.sencha.com/learn/Ext_FAQ_Grid#Dirty_Record_.2F_Red_Flag_.28modifying.2C_etc..29




回答2:


view: Ext.grid.GridView({markDirty: false})

or

viewConfig: {
    markDirty: false
}



回答3:


.x-grid3-dirty-cell {
  background-image: none;
}


来源:https://stackoverflow.com/questions/3083631/extjs-3-x-how-to-disable-the-red-mark-indicating-a-dirty-record-in-extjs-editor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!