Error: Sys.ArgumentTypeException

4 posts, 0 answers
  1. Klaus Prückl
    Klaus Prückl avatar
    6 posts
    Member since:
    Jul 2009

    Posted 23 Jul 2008 Link to this post

    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
  2. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 23 Jul 2008 Link to this post

    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
  3. Haris
    Haris avatar
    3 posts
    Member since:
    Feb 2009

    Posted 29 Apr 2009 Link to this post

    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
  4. Haris
    Haris avatar
    3 posts
    Member since:
    Feb 2009

    Posted 29 Apr 2009 Link to this post

    I found the solution.
    Actually it was an old project and it had "SmartNavigation="true"".
    I used MaintainScrollPositionOnPostback="true" it works fine now.
Back to Top