:: Forum >>

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
Monday, April 3, 2006
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)
Monday, April 3, 2006
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
Monday, April 3, 2006
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
Tuesday, April 4, 2006

This topic is archived.


Back to support forum

Forum search