datagrid icon indicating copy to clipboard operation
datagrid copied to clipboard

Returned value of setEditableCallback is ignored

Open H0w4rd opened this issue 6 years ago • 2 comments

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

H0w4rd avatar Mar 04 '18 13:03 H0w4rd

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...

elring avatar Mar 19 '18 13:03 elring

Some problem.

Bezdekm avatar Jan 29 '19 09:01 Bezdekm