I have a requirement in angular slickgrid where I want to edit the row with the same option which in result will update the date on which the update was made.
What I actually do is call an API on edit command handler when any changes are made in the table, but when I click on the same option from dropdown, the handler is not triggered(which is valid as there was no change made, but for my purpose I need that to be triggered)
So my code looks something like this:
These are my grid options
{
enableAutoResize: true,
enableSorting: true,
editable: true,
autoEdit: true,
autoCommitEdit: true,
editCommandHandler : (item, column, editCommand) => EditHandler(item, column, editCommand)//This is my EditHandler method which gets triggered and calls an API in backend
}
This is my column definition
{
id: 'status', name: 'Status', field: 'status',
filterable: true,
editor: {
collection: [{ value: 'progress', label: 'Progress' }, { value: 'new', label: 'New' }, { value: 'done', label: 'Done' }],
model: Editors.singleSelect
}
}
Now suppose If a row contains Progress in the status column and when I change that to New from dropdown my EditHandler method triggers and I proceed with my changes.
But what I want is to click on Progress again and want to trigger the EditHandler method and call the API which updates the date with the same status