:: Forum >>

Password template in a grid

Hello,
I am looking for creating a password column in a grid. I've tried to set a input template and setting attribute password but no luck.
Has anybody an idea of placing passwords fields in a grid?

Failed simple examples:

var pas = new AW.Templates.Input;
// Type input also failed var pas = new AW.Input;

pas.getContent('box/text').setAttribute('type', 'password');

// Set template in column 3 of a grid
grid.setCellTemplate(pas,3);

Thanks in advance.
Marc
Thursday, November 12, 2009
Input template does not actually use <input> element - just a styled <span> tag. Unfortunately there is no suitable template for a password type display. Maybe you can solve it injecting <input type="password"> html string into the cell content.
Alex (ActiveWidgets)
Friday, November 13, 2009
It solved part of the problem. The bad thing is that the input html string does not resize with the column width and it does not look nice.
Thanks for the explanation.
Marc
Monday, November 16, 2009

This topic is archived.


Back to support forum

Forum search