admin管理员组

文章数量:1391947

I am new to Ag-grid and am trying to create a basic table using Ag-grid and React. I am wanting to have some of my cells to be editable while some not. I tried using the source code from API docs, but it still wouldn't work.

I tried adding this:

`const defaultColDef = {
    editable: (params) => params.data.rowIndex === 2 || params.data.rowIndex === 3,
    resizable: true,
    sortable:false
  };`

However this seems to make no change to the table.

本文标签: reactjsAgGrid cell editing issue in ReactStack Overflow