pass value to editor on a column with values from other columns
pass value to editor on a column with values from other columns
I have a column with
'render: function (data, type, row) {
return (data.EMPRESA + '@' + data.CD_MAQ + '@' + data.DT_INI_ARTG);
}'
But in editor i get [object object] .
http://www.quad-systems.pt/QUAD_PRS/#ajax/prs_articles.php
Please click a row on first table and edit a result on botton table.
Thanks
This discussion has been closed.
Answers
The issue is that Editor works with the raw data, not the rendered data. So you'd need to have Editor fields for
data.EMPRESA
,data.CD_MAQ
, etc individually. If you require them to be should collectively you'd need to use get and set formatters at the server-side to combine and then split the data to and from the database.Allan