The values in the "grupo" column disappear when create and update
The values in the "grupo" column disappear when create and update
klermann
Posts: 277Questions: 67Answers: 1
Hi, Allan. when I update or create a new item in the datatable, the values in the "group" column disappear, disappear! Can you give me an idea of what?
login: admin@admin.com
pass: admin
ec2-34-224-65-226.compute-1.amazonaws.com:8080/financeiro/despesas/
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Have you resolved this since posting your question? I've just tried adding a row and the information in the "Grupo" column doesn't disappear for me.
Allan
When I click on 'pendente' or 'paga' to edit the item. the item in the 'Grupo' column and disappears
https://prnt.sc/ikuxdt
Thank you for the instructions. The issue is the use of
fnCreatedCell
to set the contents of the cell:That callback function is only executed when the cell is created (i.e. once). Any other update is going to replace the contents of that with whatever the
data
property points to.You should use
columns.render
as you have done in the other columns to create the content for the cell, not the createdCell callback.Allan
And now return null:
Can you update the link to include that code please? The link above is still using
fnCreatedCell
.Allan
Hello Allan, update link:
login: admin@admin.com
pass: admin
ec2-34-224-65-226.compute-1.amazonaws.com:8080/financeiro/despesas/
grupoDespesas.nomeGrupoDespesas
isnull
in the data being returned from the server after the edit:Allan
Solved here, thanks!