Link to test case: https://live.datatables.net/poqihuxu/2/
Error messages shown: depends on situation, edited value is formatted wrong way, e.g. server data-type check can fail
Description of problem: we use setFormatter/getFormatter in Editor field definition to convert hours value stored as decimal (visible in datatable) to hh:mm string format for user editing. Works as expected for single row editing, or multi row editing where "hour" values are the same, or have the same values. But if you select two rows with different "hour" values and then edit "name" field, getFormatter is not called upon update and for each field string value is written back to datatable (or server database in real use case), breaking data model. (check console output)
Is there a way to handle this?
↧
Editor field formatters not working for multirow editing with multiple values
↧