for (x=0;x<attrGrid.getRowCount();x++)
if (attrGrid.getCellText(12,x).length>0) {
var dropdown = new AW.Templates.Combo;
dropdown.setStyle('border', 'none');
var itemdata = attrGrid.getCellText(12,x).split('|');
var itemlist = new AW.UI.List;
itemlist.setItemText(itemdata);
itemlist.setItemCount(itemdata.length-1);
attrGrid.setCellTemplate(dropdown, 15, x);
attrGrid.setPopupTemplate(itemlist, 15, x);
}
else {
attrGrid.setCellTemplate(new AW.Templates.Text, 15, x);
}
}
attrGrid.setRowHeight(22);
dropdown.setStyle('height', '21 px');
This topic is archived.