Trying to Hide Dock on PageLoad get JS Error

2 posts, 1 answers
  1. James Van Buren
    James Van Buren avatar
    31 posts
    Member since:
    May 2007

    Posted 27 Mar 2009 Link to this post

    Hello, i am trying to accomplish simple task by hiding a RadDock on PageLoad based on some logic.
    I simply set radDock.visible=false
    It does actually hides the DOCK but than when page continues to load i get this generic JS error

     
    Microsoft JScript runtime error: 'undefined' is null or not an object  
     
    pointing to this line
    Sys.UI.VisibilityMode.registerEnum("Sys.UI.VisibilityMode");Sys.UI.Control=function(a){Sys.UI.Control.initializeBase(this);this._element=a;a.control=this

    it's not the content inside of the dock, as i tried with no content, or simple one text line. Still same result.
    I get an error and the whole DockLayout looses all of it's functionality, ie Drag&Drop, Expand and Colapse.
    I tried Hiding code in different events (page_load, RadDockLayout1_Load, RadDockLayout1_LoadDockLayout,  RadDockLayout1_PreRender) it makes no difference.

    This used to work in NoN Ajax.net version of doc and in 2008 Q1 version of the controls.
    Please advise.

  2. Answer
    Denny
    Denny avatar
    7 posts
    Member since:
    Feb 2005

    Posted 28 Mar 2009 Link to this post

    Hi James,

    I had the same problem. To fix the it, just replace "radDock.visible = False" into "radDock.closed = True".

Back to Top