datagrid
datagrid copied to clipboard
Returned value of setEditableCallback is ignored
The documentation here https://ublaboo.org/datagrid/edit?editableGrid-per_page=10#small-inline-editing says that a function passed to setEditableCallback has to return a new value, which would be rendered in a grid cell after finishing of inline editing. Unfortunatelly any returned value is ignored. Example:
$grid->getColumn("phone")->setEditableCallback(function($id, $value)
{
return "AAA";
});
Expected content of a cell after inline editing: AAA Given content: what was entered
Hello. Same problem here.
After some research it seems that variable payload._datagrid_editable_new_value is undefined (in datagrid.js). Strange, because it should be set in handleEdit in datagrid.php...
Some problem.