Intersoft WebDesktop Documentation
Configuring Expand and Collapse ExplorePane
See Also Send Feedback
Intersoft WebDesktop > WebExplorerPane > Tutorials > Configuring Expand and Collapse ExplorePane

Glossary Item Box

Objectives

This tutorial shows how to configure expand and collapse ExplorerPane. By default, the ExplorerBar will be expanded. Therefore, you need to modify the property by setting Collapse to true for instance.

  1. Refer to Creating Simple ExplorerPane to create a basic ExplorerPane.
  2. Add 2 HTML buttons and named them "Expand Picture Tasks" and "Collapse File and Folder" Tasks respectively.
  3. Right-click on the WebExplorerPane and choose WebExplorerPane Designer.
  4. Go to Panes and choose WebExplorerBar0. Set Collapse to True.



  5. Add the following code in the client-side:

    Script Copy Code
    <script language="javascript">
    function DoExpand()
    {
    var expPane = ISGetObject("WebExplorerPane1");
    var pane = expPane.Panes.GetNamedItem("WebExplorerBar0");
    pane.DoExpand();
    }
    function DoCollapse()
    {
    var expPane = ISGetObject("WebExplorerPane1");
    var pane = expPane.Panes.GetNamedItem("WebExplorerBar1");
    pane.DoCollapse();
    }
    </script>

  6. Invoke DoExpand() and DoCollapse() functions in onclick event respectively like the following:

    Script Copy Code
    <input id="Button1" type="button" value="Expand Picture Tasks " onclick="DoExpand()"/>
    <input id="Button2" type="button" value="Collapse File and Folder Tasks" onclick="DoCollapse()"/>


  7. Run the project and you will see something like following:

     

See Also

© 2012 Intersoft Solutions Corp. All Rights Reserved.