pass value to editor on a column with values from other columns

pass value to editor on a column with values from other columns

pmengopmengo Posts: 74Questions: 37Answers: 2

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

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    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

This discussion has been closed.