Create morethan one dropdown
Hi guys, i am new in active widgets. i am using AW grid with combo box in each and every row in the last column.my problem aw let not allow me to create dynamic combo.i want combo should have separate name and object for every row. below here i snipped my coding, plz do the needful things.
coding
=====
for(var icount=0;icount<myCells.length;icount++)
{
var comboFxDes = "comboFxDes"+icount
comboFxDes = new AW.UI.Combo;
comboFxDes.setControlText("");
comboFxDes.getContent('box/text').setAttribute('readonly', true);
comboFxDes.setItemCount(FX_Desc.length);
comboFxDes.setItemText(RemoveDuplicates(FX_Desc));
comboFxDes.onControlEditStarted = function()
{
this.getContent("box/text").element().contentEditable = false;
}
grid.setCellTemplate(comboFxDes,2,icount);
}
the above coding not allow me to create dropdowns with different object
coding
=====
for(var icount=0;icount<myCells.length;icount++)
{
var comboFxDes = "comboFxDes"+icount
comboFxDes = new AW.UI.Combo;
comboFxDes.setControlText("");
comboFxDes.getContent('box/text').setAttribute('readonly', true);
comboFxDes.setItemCount(FX_Desc.length);
comboFxDes.setItemText(RemoveDuplicates(FX_Desc));
comboFxDes.onControlEditStarted = function()
{
this.getContent("box/text").element().contentEditable = false;
}
grid.setCellTemplate(comboFxDes,2,icount);
}
the above coding not allow me to create dropdowns with different object
Sabi
August 29,