Premium support for our pure JavaScript UI components


Post by janan »

I am trying to set the cell content for a specific row as follows:
var selected = br.selectedRecord;
selected.set('name', 'Peter);
I get the 'b-cell-dirty' class added to the cell.
Is there an alternative way to change the data of the selected row ?
(Please Note: I have made bugreport from feedback but not sure where to track it :? )

Post by sergey.maltsev »

Hi!

There' a Grid config showDirty : false to avoid showing dirty styling if you mean this.

https://www.bryntum.com/docs/grid/#Grid/view/Grid#config-showDirty

If you need something else then please be more specific.

What was your bugreport?

Post by janan »

Hi,
Setting config showDirty : false doesn't work for me. I want to rewrite the content of one row /cell depending on my ajax response. I want the 'b-cell-dirty ' to be set when i edit a cell manually not rewrite content of the row/cell from ajax response.

Post by sergey.maltsev »

Hi!

Please try this code
            const record = grid.store.getAt(0);
            record.name = 'Peter';
            grid.store.commit();
            grid.refreshRows();

Post Reply