Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Create WebCombo in JavaScript
posted

All,

In JavaScript I curretnly create a simple dropdown like this:

        ddlAcctTypes = document.createElement('SELECT');
        ddlAcctTypes.id = 'ddlAcctTypes';
        ddlAcctTypes.onchange = function() {ddlAcctTypes_selectedIndexChange(this);};

Then when my table row turns editable, I set the Cell's innerText to '' and slide in ddlAcctTypes.  On save I remove the drop down and set the cell's inner text to the selected text. 

Works great, but now I need the drop down area of the combo box to be wider than the cell.  Something that the igCombo can do easily.

So the question is how can I create one in JavaScript and hold it in a variable until I need it?  Is there and ig_CreateComboBox function?