input text and input password don't work on same grid
Hi,
In the grid code below, I have 2 input boxes - one of type text and the other is changed to type password using setAttribute().
However, both are rendered as type text in version 2.0.1.
The strange part is that if you comment out this line, the password box is actually of type password :
How can I have an input text and input password box in the same grid ? Please help !!
Thanks,
Ankur
In the grid code below, I have 2 input boxes - one of type text and the other is changed to type password using setAttribute().
However, both are rendered as type text in version 2.0.1.
The strange part is that if you comment out this line, the password box is actually of type password :
obj.setCellTemplate(inp,1,1)
How can I have an input text and input password box in the same grid ? Please help !!
Thanks,
Ankur
var inp = new AW.UI.Input;
inp.setId("myInput");
var pas = new AW.UI.Input;
pas.setId("myInput1");
var obj = new AW.UI.Grid;
obj.setCellText(function(i, j){return j + "." + i});
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(100);
obj.setCellTemplate(inp,1,1);
obj.setCellTemplate(pas,2,2);
pas.getContent("box/text").setAttribute("type", "password");
document.write(obj);
Ankur Motreja
September 22,