Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Set GroupContentHeight to 100% height of WebExplorerBar
posted

Hi all,

Hoping someone can help here.  I'm using 10.1.

I have a WebExplorerBar which has 3 group bars.  I've set the height of the WebExplorerBar  to 600px and I've set the property GroupExpandBehavior to SingleExpanded which will mean at least one group will always be expanded (default is the first).  When I set the GroupContentsHeight to 100%, I'm expecting it to expand filling the entire WebExplorerBar container area.  So if I click on the first group bar, the other 2 should be pushed to the bottom of the explorer container.  But this is not happening.  Am I missing something?  I tried to venture down Client Side scripting approach but no luck.  Any suggestions will be much appreciated?  My sample code is below:

Thanks,
Assad

<div>
 
<ig:WebExplorerBar ID="WebExplorerBar1" runat="server" Width="250px" Height="500px" GroupContentsHeight="100%" MaxGroupHeight="100%" GroupExpandBehavior="SingleExpanded">
<Groups>
  <ig:ExplorerBarGroup Text="Menu 1">
    <Items>
     
<ig:ExplorerBarItem Text="Item 1.1"></ig:ExplorerBarItem>
     
<ig:ExplorerBarItem Text="Item 1.2"></ig:ExplorerBarItem>
   
</Items>
 
</ig:ExplorerBarGroup>
 
<ig:ExplorerBarGroup Text="Menu 2">
   
<Items>
     
<ig:ExplorerBarItem Text="Item 2.1"></ig:ExplorerBarItem>
   
</Items>
 
</ig:ExplorerBarGroup>
 
<ig:ExplorerBarGroup Text="Menu 3">
   
<Items>
     
<ig:ExplorerBarItem Text="Item 3.1"></ig:ExplorerBarItem>
   
</Items>
 
</ig:ExplorerBarGroup>
</Groups>
<ExpandButton AltText="Expand button"></ExpandButton>
<CollapseButton AltText="Collapse button"></CollapseButton>
</ig:WebExplorerBar>
</div>

Parents
  • 3726
    Suggested Answer
    posted

    Hi,

    in order to do this you have to set GroupContentsHeight on the control level to

    (ControlHeight -  NumberOfGroups * GroupHeight) i.e 600 - 3 * 30 = 510px.

    GroupContentsHeight sets a fixed height that a group will have when it is expanded. If set on control level this setting will be applied for all groups. If you want to override this behavior you can specify it on specific group.

    While MaxGroupHeight is useful to limit the group height so that its total size does not cross some pixel boundary. For example if you set MaxGroupHeight to 100px if your group contents total height is below 100px they will be all visible and no scrollbar will be shown. But if the group contents total height is higher than 100px, the viewable area will be 100px and scrollbar will be shown. So this depends on each group contents.

    If GroupContentsHeight is set, it overrides the setting of MaxGroupHeight.

Reply Children
No Data