Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Docking > Collapse/Restore when Disabled
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Not answered Collapse/Restore when Disabled

Feed from this thread
  • Ryan Grossman Intermediate avatar

    Posted on Feb 1, 2011 (permalink)

    Is there anyway to show the Collapse/Restore button when the Enable docking on the docking manager is set to false?

  • Ryan Grossman Intermediate avatar

    Posted on Feb 1, 2011 (permalink)

    I trying to manually show a custom command button to handle this with docking disabled. I can get expand to work and collapse to work, but I need to detect if the dock is expanded and collapsed. What is wrong with my code below for this?

        function ToggleState(dockableObject, command)
        {
            if(dockableObject.Expanded == "True")  
            {  
               dockableObject.Collapse();  
            }  
            else  
            {  
               dockableObject.Expand();   
            }  
        }

  • Pero Pero admin's avatar

    Posted on Feb 3, 2011 (permalink)

    Hi Ryan,

    The method to use when checking whether a dock is expand or not is IsExpanded. Basically your code will look like the following:

    function ToggleState(dockableObject, command)
    {
        if(dockableObject.IsExpanded()) 
        
           dockableObject.Collapse(); 
        
        else 
        
           dockableObject.Expand();  
        
    }


    All the best,
    Pero
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

  • Ryan Grossman Intermediate avatar

    Posted on Feb 3, 2011 (permalink)

    Thank you for this. I didn't want drag and drop so I created my own commands and this works just fine.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Docking > Collapse/Restore when Disabled