tui.grid icon indicating copy to clipboard operation
tui.grid copied to clipboard

Enable editor with custom conditions

Open denaldhushi opened this issue 2 years ago • 2 comments

Summary Is possible to enable editor in grid only for some rows, for example only for the row that is selected in screenshot?

Screenshots 1

Version 4.21.2

denaldhushi avatar Jul 25 '22 08:07 denaldhushi

Is anyone here?

denaldhushi avatar Aug 01 '22 19:08 denaldhushi

@denaldhushi

Sorry for late replying. There is no options or API to enable editing on specific rows, but you can block editing the cell or row what you want to do like below.

grid.on('editingStart', (ev) => {
  const { instance, rowKey, columnName } = ev;

  if ( /* Condtion what you want to disable edit */ ) {
    ev.stop();
  }
});

jajugoguma avatar Aug 09 '22 07:08 jajugoguma

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

stale[bot] avatar Oct 30 '22 04:10 stale[bot]