Javascript Error in _setExpanded of RadPanelItem after i cancel an insert in a radgrid

5 posts, 0 answers
  1. Sophie
    Sophie avatar
    33 posts
    Member since:
    Aug 2012

    Posted 01 Mar 2013 Link to this post

    I have a radgrid under my RadPanel. When i cancel the insert command, i get this javascript error if i try to expand my RadPanel:
    ( Object doesn't support this property or method)

    The first error is from telerik _setExpanded function, happening on _setChildrenHeight(""):
    }var o=this.get_panelBar();
    var j=this._getAnimatedElement();
    var f=this.get_parent();

    If i put a spy on the f variable, there's no setChildrenHeight in that item.
    Here are some propreties that might help to find what's wrong:
    _childTypeName = "Telerik.Web.UI.RadPanelItem"
    _childControlsCreated = true
    _childListElement = {object} -> i see all my list element when i look at the innerHTML, so they are there.
    _clientState.exapandedItems = 0
    _enabled = true
    _expendedItem = null
    _id = null
    _initialized = true

    Tell me if you need more info, ask me.

    In case it's not clear, i can make some step to reproduce:
    1.I load my main RadGrid, then open a row.
    2.In that row detail, there's some stuff, along with a RadPanel, and another Radgrid, that has the "add a new record" enabled.
    3.I expand my RadPanel, everthing is there. I close it.
    4.I click on [+] to add a row in my small radgrid, then cancel. (ajax load back the small grid)
    5.I click on the RadPanel to expand it, the error occurs.
    Second error:
    3.I expand my RadPanel, everthing is there. I leave it open.
    4.I click on [+] to add a row in my small radgrid, then cancel. (ajax load back the small grid)
    5.The error occurs.
    Here is the code where the second error occurs:

    This.get_Parent() is a RadPanelItem too so it can't find the setChildrenHeight too.

    Can this occurs because of some mishandled updates with my small radgrid with ajax? We're folowing the prototype method, using  js for every userControl to update grid on client side to prevent the whole page to update.

    Please help cause i have really no idea how to fix this.

  2. Sophie
    Sophie avatar
    33 posts
    Member since:
    Aug 2012

    Posted 01 Mar 2013 Link to this post

    Ok i got more info on this.
    This error occurs because my cancel button calls a RadWindow to ask the user if he's sure to cancel, then load back the small Radgrid.
  3. Ed
    Ed avatar
    124 posts
    Member since:
    Jan 2008

    Posted 06 Aug 2013 Link to this post

    I have also observed exactly this behaviour, only this time it happens when a RadPanelBar is present in a page with a RadTreeView.  Can anyone at Telerik help us out?
  4. Ishita
    Ishita avatar
    1 posts
    Member since:
    Feb 2013

    Posted 23 Oct 2013 Link to this post

    Hi Telerik,

    I am facing the same javascript issue in the WebResource.axd file in a page.
    My page has a RadPanel with two panel items and having user controls.Both the panels are expanded on page load. On collapsing the panels once, I am not able to expand them back because it throws a javascript error as follows:

    Message: Object doesn't support property or method '_setChildrenHeight'
    Line: 776
    Char: 51
    Code: 0
    URI: http://myserver:1000/ScriptResource.axd?d=76thsVyffH72BiGFsVikAiL3kEt6lbbnDHLC98MoDEnnzbqP0ATSp3GzFq5aGBVEAM4xU1A-t0ZP9ub77F8qOKf7P-XkSxMl656qZW4O1UcaZM1mKAp-sqG8UC5ZJBKEFYZZqVnOluTHw1YBzxMc_1GuyuooLu8QZLm9Cq6XjNrCiq0ka5HpFFm6_Ns0YAtIHZD5ybT55tqzql9nVeHt2Q2&t=ffffffff987f999b

    Any suggestions will be helpful.

    Thanks :)
  5. Boyan Dimitrov
    Boyan Dimitrov avatar
    2062 posts

    Posted 28 Oct 2013 Link to this post


    I am afraid that I am not able to replicate the described error message. Please find attached a sample project containing a RadPanelBar control with some child items and each item contains a user control with a text box control. On initial page load all parent RadPanelBar items are expanded. Expanding/collapsing any RadPanelBar item could be achieve without any errors. Please explain what exactly is different in your scenario and try to replicate that problem with the attached sample project.

    Boyan Dimitrov
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Back to Top