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; };
obj.onControlClicked = function() { this.showPopup(); };
obj.onControlEditStarted = function(){ this.getContent("box/text").element().contentEditable = false; this.showPopup(); };
var combo = new AW.Templates.Combo;
grid.setCellTemplate(combo, 3);
grid.onCellClicked =
function(event, col, row)
{
if (col == 3)
{
var cellTemplate = this.getCellTemplate(col, row);
if ((cellTemplate.getAttribute("expanded") == null) ||
(cellTemplate.getAttribute("expanded") == false))
{
cellTemplate.setAttribute("expanded", true);
cellTemplate.showPopup();
}
else
{
cellTemplate.hidePopup();
cellTemplate.setAttribute("expanded", false);
}
}
return true;
};
This topic is archived.