How to upgrade checkbox template from 1.0.2 to 2.5.2?
Hi Alex,
I need to upgrade my code with checkbox template from 1.0.2 to 2.5.2. I did reseach in the entire forum but I can't find a complete solution for my requeriments.
I need the equivalent of this 1.0.2 code for 2.5.2:
As you can see, I need that checkboxes set checked if the array value are 1 and unchecked if the array value are 0.
Also I need that in the column 3 content only the checkbox; for now, it's display the checkbox and the column CellText together. I try to do this with the following code (v2.5.2) but it generate a javascript error:
The error message:
And finally, I need that when I check or uncheck the checkbox, the event trigger an update on the array data.
Please help me, I'm taking 2 day trying to solve this inconvenience.
Thanks in advance
I need to upgrade my code with checkbox template from 1.0.2 to 2.5.2. I did reseach in the entire forum but I can't find a complete solution for my requeriments.
I need the equivalent of this 1.0.2 code for 2.5.2:
chk = new My.Templates.Checkbox;
chk.setCheckedProperty('true', '1');
chk.setCheckedProperty('false', '0');
grid.setColumnTemplate(chk,3);
As you can see, I need that checkboxes set checked if the array value are 1 and unchecked if the array value are 0.
Also I need that in the column 3 content only the checkbox; for now, it's display the checkbox and the column CellText together. I try to do this with the following code (v2.5.2) but it generate a javascript error:
var chk = new AW.Templates.Checkbox
chk.setContent("box/text","");
x_grid.setCellTemplate(chk, 2);
The error message:
Error: this.getContent("box/text").refreshContents is not a function
Archivo de origen: http://navegador/js/aw.js
Línea: 33
And finally, I need that when I check or uncheck the checkbox, the event trigger an update on the array data.
Please help me, I'm taking 2 day trying to solve this inconvenience.
Thanks in advance
Esteban
January 27,