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
2745
Error getting ajaxIndicator in Javascript source files for webdropdown
posted

Hello!

I have implemented a client-side script that should invoke the servers-side event ItemsRequested.

           function indexChanging(sender, eventArgs) {

var combo2 =$find('ctl00_ContentPlaceHolderHeader_ddEC3Country');

           var sel = eventArgs.getNewSelection()[0].get_text();

           combo2.loadItems(sel);

 

}

after the loaditems method i called, it jumps over to the serverside and executes the ItemsRequested methd. This method is 'empty' at the moment. 'After that method is called, it fails in a javascript function shown below which is included in the source files for the webdropdown control.

           _endRequest: function()

           {

           this._currentRequests--;

           if (this._callbackQueue.length > 0)

           this._popCallback();

           /* get ajaxIndicator: do not use ctl._pi, because, child grid does not have it and */

/* filters through ajaxIndicator of hierarchical grid */

var pi = this._control.get_ajaxIndicator ? this._control.get_ajaxIndicator() : null;

                      /* hide ajaxIndicator (do not reset _posted here) */

           if (pi)

           pi.hide();

           }

it is the getAjaxIndicator that seems to be null....

I have no ideas what this can be, someone?

/Henrik

 

Parents
No Data
Reply
  • 500
    posted

    Hi Henrik,

    I tried simulating your case, however I didn't get any error related to the ajax Indicator. I would like just to mention that when the body of the ItemsRequested event handler is empty, you will not load any data into the drop down.

    If you still experience this issue, please provide a sample that reproduces the error.

    If you need any additional help or information please do not hesitate to contact me.

    Thanks,

    Dimitar

Children