3.0.0

How to clear a column template?

Hi guys.... and girls,

I need to unset a column template "checkbox" that I did assigned previously with comand (c5 is the variable that contain the checkbox template definition):
grid.setColumnTemplate(c5,7);


I try to unset the template applying the following commands but anyone works:
grid.unsetColumnTemplate(7);
grid.clearColumnTemplate(7);
grid.setColumnTemplate(grid.getColumnTemplate(1),7);


Thanks in advance.
Regards.

Esteban
July 11,
Can anyone help me please?
July 14,
I found a solution based on this other one for version 2:

http://www.activewidgets.com/javascript.forum.23264.1/how-to-set-to-remove.html

I use this code to set a template
check = new My.Templates.Checkbox;
check.setCheckedProperty('true', '1');
check.setCheckedProperty('false', '0');

grid.setColumnTemplate(check,7);


And this one to clear a template:
grid.setColumnTemplate(new Active.Templates.Text, 7);


Regards
Esteban
July 14,

This topic is archived.

See also:


Back to support forum

Search

Version 2

Looking for AW 2.6 ?
The old site is here.