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
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
ok...
i had to implement another solution for my problem and that works for now. i will have your thoughts about the ItemRequested method in mind when I meet this problem again. perhaps i will reopen this case at that time...
thanks for now!