I observed the following unexpected bahaviour:
A field - for example the start date field - is set to required.
The value of the start date is deleted within the start date column of a task.
The field is marked as invalid/required.
Now it's not possible to click or double click within another cell or somewhere else outside this cell (e.g. another cell or diagram or right click to open the task menu ...).
=> My expectation:
When clicking/double clicking somewhere the editing of the cell is canceled and the last valid the field value is reset to the last valid known value, i.e. the value before editing.
What can I do to reach this expected behaviour?
Catching the corresponding events (e.g. taskMenuShow, taskClick, cellClick, selectionChange etc.) and cancel editing on the Gantt is a bit painful ...
Hi,
so there is no way to reset to last valid value just by clicking in another field?
Example:
Start date is required. I remove the current start date value and click into the finish date field.
=> My expectation: Start date is reset to last valid value.
and startDateField set as required and moreover set the startDateColumn to instantUpdate: false.
This combination causes, that a value set in the column cell is not set on the task anymore.
Inline editing has no effect anymore.
Is that intended or just an invalid combination of config options?
If I set instantUpdate: false the set value in the column is set on the task.
As you have instantUpdate set to false it's not gonna update instantly. I'm a bit confused about the issue you're having, could you please rephrase the issue and would you be able to share a reproduction video of this issue?
{ type : 'startdate',
editor: new StartDateField({required: true}),
instantUpdate: false
},
features:
cellEdit: {
blurAction: 'cancel'
}
My expectation:
Start date field in the start date column is mandatory.
If I remove the start date or enter an invalid value and click somewhere outside the cell, the last valid value is set.
If I set a valid value in the cell and click somewhere outside the cell, I expect that the set value is taken and not the one before.
Why I set this configuration:
In our scheduling methodology start and end date are required.
If the user deletes the date value or enters an invalid one, the value should be reset to the last valid one if he clicks somewhere outside the cell. Like this it is assured, that the fields contain a valid value.
To reach this we cancel editing as you advised in your post above.
For performance reasons we set instantUpdate to false.
According to my tests, this seems to be an invalid combination of config options, as it is now not possible anymore to set a value in the column cell.
See attached video and code snipped from your online advanced exmple for clarification.