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

Error: Sys.ArgumentTypeException

3 Answers 167 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Klaus Prückl
Top achievements
Rank 1
Klaus Prückl asked on 23 Jul 2008, 08:20 AM
hello,
i have a problem with the RadTreeView for ASP.NET AJAX, in fact i got a Runtimeerror "Sys.ArgumentTypeException: The object with the type Telerik.Web.UI.RadTreeView can not be converted to the Type Telerik.Web.UI.RadTreeView" which seems strange to me.
This error is not reproducible, due to the fact that this error occours from time to time, when i do different operations on the website. for example i click ten times on a node and everything works fine, but on click later ther come the error.

the error occoured here:
Type.prototype.getBaseMethod = function Type$getBaseMethod(instance, name) {
    /// <summary locid="M:J#Type.getBaseMethod" />
    /// <param name="instance"></param>
    /// <param name="name" type="String"></param>
    /// <returns type="Function" mayBeNull="true"></returns>
    var e = Function._validateParams(arguments, [
        {name: "instance"},
        {name: "name", type: String}
    ]);
    if (e) throw e;
    if (!this.isInstanceOfType(instance)) throw Error.argumentType('instance', Object.getType(instance), this);
    var baseType = this.getBaseType();
    if (baseType) {
        var baseMethod = baseType.prototype[name];
        return (baseMethod instanceof Function) ? baseMethod : null;
    }

    return null;
}

i hope you can help me!
best regards,
hannes

3 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 23 Jul 2008, 12:34 PM
Hi DI Johannes Leitner,

We have not encountered such an error until now.

Could you reproduce it somewhere in our online demos here? Or could you describe how we can reproduce it, so that we do so on our end, too?

Regards,
Simon
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Haris
Top achievements
Rank 1
answered on 29 Apr 2009, 06:00 PM
Hi DI Johannes Leitner.
Did u get the solution of your problem?
I am having the same problem and I am able to reproduce the error. Here is my scenario:
I've a Menu Control where I am using Rad Tree View and I am using it on Master Page which in turn is used on all other pages. My Project is using almost all of Telerik Controls. There is one specific page where I've a simple data grid( not Rad Grid) . If i do any operation on that grid, and try to access the menu, it gives "Sys.ArgumentTypeException: The object with the type Telerik.Web.UI.RadTreeView can not be converted to the Type Telerik.Web.UI.RadTreeView".
Menu Control is working fine on all other pages, I am thinking to replace the data grid with Rad Grid, but it is not the solution of the problem.
any ideas ?
btw i m using version: v2009.1.311.20

Thanks and Regards.
- Haris
0
Haris
Top achievements
Rank 1
answered on 29 Apr 2009, 06:26 PM
I found the solution.
Actually it was an old project and it had "SmartNavigation="true"".
I used MaintainScrollPositionOnPostback="true" it works fine now.
Tags
TreeView
Asked by
Klaus Prückl
Top achievements
Rank 1
Answers by
Simon
Telerik team
Haris
Top achievements
Rank 1
Share this question
or