This is a migrated thread and some comments may be shown as answers.

Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: handler

12 Answers 717 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
none123456
Top achievements
Rank 1
none123456 asked on 04 Mar 2008, 02:51 PM
I believe I have found a bug in the dispose method.

var _5=Sys.WebForms.PageRequestManager.getInstance();

_5.remove_pageLoaded(this._pageLoadedHandler);

this._pageLoadedHandler=null;

The dispose method does not check to see whether this._pageLoadedHandler exists and is not null. If the window is immediately refreshed (perhaps user clicks a link very quickly, or http-refresh or some other client redirect is used), the page loaded handler will not have been set.

If believe a simple if test would fix the bug, such as:

if (this._pageLoadedHandler) {
    var _5=Sys.WebForms.PageRequestManager.getInstance();
    _5.remove_pageLoaded(this._pageLoadedHandler);
    this._pageLoadedHandler=null;
}

Thanks for looking into this.

David

12 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 04 Mar 2008, 06:11 PM
Hi David,

Thank you for the provided information. We will log this in our TODO list.
We do appreciate your feedback and updated your Telerik points.

Best wishes,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
eric knight
Top achievements
Rank 1
answered on 09 Apr 2008, 12:02 AM
Does Telerik has a timeline on this?

I am experiencing the same issue and am curious if there is a hotfix or service pack slated for any time soon.
0
Svetlina Anati
Telerik team
answered on 11 Apr 2008, 03:37 PM
Hi Eric,

This is logged in our TODO list but it is not fixed yet because the priorities for the next release are already set. We can not tell exactly when it will be fixed but we suggest to open a new support ticket and send us your project. Once we are able to reproduce the problem, we will help you solve it.



Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
terrysmith
Top achievements
Rank 1
answered on 19 Jun 2008, 07:26 PM
I'm having this same problem. It occurs on RadWindows. It looks like the solution dmatson proposed is simple and painless. I don't understand why there is not a hotfix for this yet.


0
Tervel
Telerik team
answered on 23 Jun 2008, 03:08 PM
Hello,

The reason for not being able to add this fix is quite trivial. We address the reported issues by priority and usually go one by one in the list, fixing each consequtive issue. As you correctly note, this scenario is fairly uncommon, and its workaround was fairly simple - this is why the issue is lower in the list with things to fix.
That said, we will address the issue by the time Q2 arrives.

Going back to your post - it is very strange how you get this error with RadWindow rather than RadToolTip, because this (or similar code) does not exist in RadWindow. Can you confirm that the problem indeed occurs in a RadWindow, as well as - is it possible to send us a sample project for us to examine?


Sincerely yours,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
terrysmith
Top achievements
Rank 1
answered on 23 Jun 2008, 03:46 PM
Hi Tervel,

What is the workaround that you mentioned? There is no workaround posted on this thread. I can confirm that this problem occurs on RadWindows and seems to do so randomly.


Thanks,
Terry
0
Tervel
Telerik team
answered on 24 Jun 2008, 11:05 AM
Hello Terry,

On a closer examination of the thread, you are correct - there is not a full working solution provided.
I am pasting the solution here - essentially what it does is override the dispose method of the RadToolTipManager. All that needs to be done is to add this code somewhere at the bottom of your page

<script>
Telerik.Web.UI.RadToolTipManager.prototype.dispose = function()

    
this._moveUpdatePanel();
    this._disposeToolTips(); 

if (this._pageLoadedHandler)
{
    var
prm = Sys.WebForms.PageRequestManager.getInstance();

    prm.remove_pageLoaded(
this._pageLoadedHandler); 
    this._pageLoadedHandler = null;
    this._updatePanelParent = null;
}
    Telerik.Web.UI.RadToolTipManager.callBaseMethod(
this, 'dispose');
},


</script>


On a side note, I still stand by my claim that it is not possible to have this error in RadWindow[Manager], so sending us a sample project and steps to reproduce would be great.

All the best,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jason Lee
Top achievements
Rank 1
answered on 28 Aug 2008, 05:53 AM
Dear Sir,

I think I get the same problem, too...

the following code throws Sys.ArgumentUndefinedException

var prm=Sys.WebForms.PageRequestManager.getInstance();
prm.remove_pageLoaded(this._pageLoadedHandler);
this._pageLoadedHandler=null;
Telerik.Web.UI.RadFormDecorator.callBaseMethod(this,"dispose");
},saveClientState:function(){
var _60=[""];
var _61={};
for(var i=0;i<_60.length;i++){
}

this._pageLoadedHandler is undefined.
0
Georgi Tunev
Telerik team
answered on 28 Aug 2008, 07:04 AM
Hi Jason,

Have you tried the code that Tervel posted above? Put the JavaScript at the bottom of the page and see how your app will behave.



All the best,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jason Lee
Top achievements
Rank 1
answered on 28 Aug 2008, 07:26 AM
I guess my problem  doesn't relate to RadToolTipManager....
thereofre, the code probably doesn't work for me
0
Tervel
Telerik team
answered on 01 Sep 2008, 10:26 AM
Hello Jason,

Please excuse us for the misunderstanding. You can use practically the same approach with the RadFormDecorator control, e.g. add the following code to your page:

<script>
Telerik.Web.UI.RadFormDecorator.prototype.dispose = function()

        if (this._pageLoadedHandler)
        {
            var prm = Sys.WebForms.PageRequestManager.getInstance();       
            prm.remove_pageLoaded(this._pageLoadedHandler);               
            this._pageLoadedHandler = null;
        }

    Telerik.Web.UI.RadFormDecorator.callBaseMethod(
this, 'dispose');
};

</script>


The RadFormDecorator's inhouse version was updated as well, so the next RadControls SP will feature the improved code.

Best wishes,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Faheem
Top achievements
Rank 1
answered on 05 Feb 2009, 10:36 AM
Hi Telerik,

M using ASP.NET 2.0 AJAX Extensions and i m also it was working fine but noe suddenly m getting the same error what to do??M unable to understand from where this error is originating???Plz help me aout...Thanx
Tags
ToolTip
Asked by
none123456
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
eric knight
Top achievements
Rank 1
terrysmith
Top achievements
Rank 1
Tervel
Telerik team
Jason Lee
Top achievements
Rank 1
Georgi Tunev
Telerik team
Faheem
Top achievements
Rank 1
Share this question
or