However, this doesn't seem to work when using the Combo TEMPLATE (AW.Templates.Combo) as the cell template for grid cells; is there a way to get the same effect there?
Jared
Friday, December 28, 2007
Here an example showing how to do that: var obj = new AW.UI.Combo;
obj.getContent('box/text').setAttribute('readonly', true);
obj.getContent('box/text').setAttribute('autocomplete', 'off');
obj.getContent("box")._innerHTML = "";
obj.getContent("box")._outerHTML = "";
obj._innerHTML = "";
obj._outerHTML = "";
if(AW.ie) obj.onControlActivated = function(){ return true; };
Um......that's exactly what I just posted. Your example code uses AW.UI.Combo, which I already saw in the existing samples. What I need is a way to do it for AW.Templates.Combo. Can this be done?
Jared
Wednesday, January 2, 2008
For anyone interested, I think I've figured this out. My solution was to forget about the individual dropdowns' onControlClicked handlers, and instead use the grid's onCellClicked event handler in conjunction with custom attributes, like so:
var combo = new AW.Templates.Combo;
grid.setCellTemplate(combo, 3);