:: Forum >>
checbox Template value based on CellText for array ?
Hi
I am trying to avoid the use of Grid.setCellValue( function(col,row){.......
So the checked value should be stored in same or next CellText
I also need the checked property-value to be empty or 1, or 0 - 1
How to accomplish this scenario ?
tried this way but I guess I need to construct a custom template for this task
I need Help ! ;)
var chkTemplate = new My.Templates.Checkbox;
chkTemplate.setCheckedProperty('true', '1');
chkTemplate.setCheckedProperty('false', '');
obj.setColumnTemplate(chkTemplate,0);
Carlos
Monday, December 26, 2022
My fault , should be:
var chkTemplate = new My.Templates.Checkbox;
obj.setCellTemplate(chkTemplate,0);
obj.defineCellProperty('checked',0);
obj.setCellChecked(('true', '1');
obj.setCellChecked(('false', '0');
obj.setCellText( this.getCellChecked(0 , row) , 0 , row)
Amazing !!
Thanks
Monday, December 26, 2022
This topic is archived.
Back to support forum
Forum search