Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > ComboBox > WebService based load on demand multi-column combobox

Not answered WebService based load on demand multi-column combobox

Feed from this thread
  • phdw avatar

    Posted on Sep 20, 2008 (permalink)

    Requirements

    RadControls version

    RadControls for ASPNET AJAX Q2 2008
    .NET version

    3.5
    Visual Studio version

    2008
    programming language

    C#
    browser support

    all browsers supported by RadControls



    PROJECT DESCRIPTION

    WebService based load on demand multi-column combobox.

    Telerik Note: You can achieve the same effect more easily with ASP.NET AJAX 4.0 client-side Templates and the RadComboBox client-side ItemDataBound event. For more information about the approach please see this blog post.


    Attached files

    Reply

  • Jim avatar

    Posted on Mar 23, 2009 (permalink)

    The attached solution is throwing the following error
    Microsoft JScript runtime error: '0' is null or not an object
    when you type something in the textbox that does not exist in the dropdown. 
    This is occuring in Visual Studio 2008 during debugging.

    For Example, I start typing the first two or three characters of a matching record, then I type in a character that results in no matching record, and the error is thrown. I am using IE 7 on XP Pro, and the code that is throwing the error is:

    if (_this._xmlHttpRequest.readyState === 4 ) {  
                try {  
                    if (typeof(_this._xmlHttpRequest.status) === "undefined") {  
                        return;  
                    }  
                }  
                catch(ex) {  
                    return;  
                }  
                  
                _this._clearTimer();  
                _this._responseAvailable = true;  
                try {  
    //THE LINE BELOW IS THROWING THE ERROR         
    _this._webRequest.completed(Sys.EventArgs.Empty);  
                }  
                finally {  
                    if (_this._xmlHttpRequest != null) {  
                        _this._xmlHttpRequest.onreadystatechange = Function.emptyMethod;  
                        _this._xmlHttpRequest = null;  
                    }  
                } 

    this code does not exist in the attached JavaScript files, so I am assuming it is located in one of the axd file references located in the web.config. Any help on rectifying this solution would be helpful.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Code Library / ASP.NET and ASP.NET AJAX > ComboBox > WebService based load on demand multi-column combobox