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
245
Initialize should be a function, function name, or function text error
posted

hi everybody, I'm newbie to using Infragistics. I'm having a problem with fetching the values from a webcombo control on the client side after a value has been selected on the dropdown. I keep getting the error via the alert box "Initialize should be a function, function name, or function text".

Here is my code: 

function WebCombo1_AfterSelectChange(webComboId){
            //Add code to handle your event here.
            if (!_WebCombo1Cntrl.getGrid().oActiveRow) return;
           
           
            alert(_WebCombo1Cntrl.getGrid().oActiveRow.getCellFromKey("ProductID").getValue());
            alert(_WebCombo1Cntrl.getGrid().oActiveRow.getCellFromKey("ProductName").getValue();
           
            document.getElementById('TextBox1').Value = _WebCombo1Cntrl.getGrid().oActiveRow.getCellFromKey("ProductID").getValue();

         
        } 

If anybody can give me a hand, i would appreciate it. thank you so much.