3.2.0

dynamically load the combo box...

How do I load the combo box dynamically

this is the code:

<script>
    var obj = new AW.UI.Combo;
    obj.setControlText("Combo");
    obj.setControlImage("favorites");
    obj.setItemText(["Home", "Favorites", "Font size", "Search"]);
    obj.setItemImage(["home", "favorites", "fontsize", "search"]);
    obj.setItemCount(4);
    document.write(obj);
    </script>


I am creating rows dynamically and those rows have AW comboboxes but im not able to create the dynamically.

I need to place the AW combo box in place of this normal HTML combobox.

... '+'<select name="sel1" style="width:80px;"><option>ABC</option></select>'+' ...


Can anybody help me out??
Sameer
April 3,
Do you need to put combo boxes into the AW grid cells or just multiple combo boxes on your page? Also where the combo box data comes from?
Alex (ActiveWidgets)
April 3,
no it is not to be put on AW grid cells just on normal HTML table...The data will be populated dynamically i guess... im just doing the UI part but the actual development wil be done by somebody else....
Sameer
April 3,
I am not sure to understand but it seems to me that you want to use obj.toString() and concatenate "all" pieces in one temporary string.
Philippe
April 4,

This topic is archived.

See also:


Back to support forum