'Disable next and previous cell in AgGrid
I have an AgGrid with ColDefs listed below and 3 columns I want to click on the middle cell and disable the first and last cell so that they cannot be clicked and the same goes for all of the other cells.
columnDefs: ColDef[] = [
{
field: 'approve',
headerName:'approve',
editable: true,
cellRenderer: 'checkboxRenderer',
cellRendererParams: { required: true },
cellEditor: 'checkboxEditor',
cellEditorParams: { required: true },
},
{
field: 'reject',
headerName: 'reject',
cellRenderer: 'checkboxRenderer',
cellRendererParams: { required: true },
cellEditor:checkboxEditor',
cellEditorParams: { required: true },
},
{
field: 'groups',
headerName: 'groups',
cellRenderer: 'groupsRenderer',
cellRendererParams: { required: true },
cellEditor: 'checkEditor',
cellEditorParams: { required: true },
},
Is there any way for me to have access and change the status of my previous and next cell based on the current one?
all the needed data is in params.data but when i change params.data.approve = true it is not indicated in the reject cell
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|