3.2.0

DropDown not working inside a grid

Hi, newbie to active widgets here...

I am trying to make a single cell in the grid example a dropdown...I see the dropdown but i can't click on the values to save them.

var obj2 = new AW.UI.Combo;

obj2.setId("myCombo");
    obj2.setControlText("Some text");
    obj2.setControlImage("favorites");
    obj2.setItemText(["Home", "Favorites", "Font size", "Search"]);
    obj2.setItemImage(["home", "favorites", "fontsize", "search"]);
    obj2.setItemCount(4);

     
obj.setCellTemplate(obj2, 1, 1);


What is missing? Help please :)
Claude
June 1,
any ideas?
Claude
June 1,
It is better to use combo cell template -

var data1 = ["Email","Phone","FedEX","USPS"];

    var list1 = new AW.UI.List;
    list1.setItemText(data1);
    list1.setItemCount(data1.length);

    var obj = new AW.UI.Grid;

    obj.setCellData("cell");
    obj.setHeaderText("header");
    obj.setColumnCount(10);
    obj.setRowCount(10);

    obj.setCellEditable(true);

    obj.setCellTemplate(new AW.Templates.Combo, 1, 1);

    obj.setPopupTemplate(list1, 1, 1);

    document.write(obj);
Alex (ActiveWidgets)
June 2,

This topic is archived.

See also:


Back to support forum