I'm trying to set values to the empty model when i click add and show the custom edit template, i've set them through javascript but it doesn't show on popup window.
function onEdit(e) {
var today = new Date();
e.model.FECHA = today;
console.log(e.model)
}
Also i've set them in the model constructor but it doesn't work, the only way to set it is via javascript and delaying the script a few seconds but this solution it's not reliable
thank you