Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to avoid below cell copy in to the above cell in extJs 3.2
    primarykey
    data
    text
    <p>I have <code>EditorGridPanel</code> data set. I want to disable some cell editable (check database that field record read-only is <code>YES</code>). </p> <p>I did that calling <code>getSiteEditable</code>. I disable cell edit but when I click cell A (a read-only cell), after that I click <code>cancel</code> and double click on the Cell B, in that time cell B content copy in to the cell A.</p> <p>Data store:</p> <pre><code>siteStore = new Ext.data.JsonStore({ idProperty: 'ROWI', root: 'data', autoLoad: true, mode: 'remote', url: WOERP.getURL("portals", "sm", "grid", "grid=portal_sm_configui_site_tab_grid&amp;action=get"), keys: ['CONFIG_TYPE'], fields: [ 'ROWI', 'CONFIG_VALUE', 'CONFIG_DESC', 'CONFIG_TYPE', 'SHORT_DESC', 'IS_READ_ONLY', 'ROWDATE'] }); this.gridSiteData = Ext.ux.grid.woerp.getWoerpGrid(this.gridSiteData, siteStore); siteRowEditor = Ext.getCmp('portal_sm_configui_site_tab_grid_roweditor'); siteRowEditor.on('beforeedit', this.getSiteEditable, this); </code></pre> <p><strong>setSiteEditable function</strong></p> <pre><code>getSiteEditable: function (roweditor, rowIndex) { if (!roweditor.initialized) { roweditor.initFields(); } var fields = roweditor.items.items; var rec = this.gridSiteData.store.getAt(rowIndex); var isReadOnly = rec.data.IS_READ_ONLY; if (isReadOnly == 'YES') { Ext.each(fields, function (field, i) { if (field.name == 'CONFIG_VALUE') field.setDisabled(true); }); } else Ext.each(fields, function (field, i) { if (field.name == 'CONFIG_VALUE') field.setDisabled(false); }); } </code></pre> <p>I can disable editable function by calling the above method, but when I click on data cell that copy below data cell content and show small red icon top of the click data cell.</p> <p>Anyone know the reason of copying data into another cell?</p> <p><strong>page load</strong> <img src="https://i.stack.imgur.com/8y47D.png" alt="page load view"> <strong>Double click on the cell A</strong> <img src="https://i.stack.imgur.com/SbSwd.png" alt="enter image description here"> <strong>After double click on the cell B(copy cell B content in to cell A)</strong> <img src="https://i.stack.imgur.com/sxUMV.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/6WUnv.png" alt="after double click on the cell"></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload