Feature Rqst: Option to disable expanded items.

This post has 3 replies

Top 75 Contributor
Posts: 69
mliu Posted: Sat Oct 2, 2004 @ 1:00 PM
Currently, if a NavBar's FullExpand property is set to "false", it is possible to collapse an expanded top-level item by clicking on it a second time.

I would like the option to disable this. That is, with the option set: when an item is expanded, you cannot collapse it by clicking on it; it only collapses when another item is expanded. This behavior would be the same as when FullExpand is set to "true" (except the menu items wouldn't automatically expand to the full height of the control).

As an added bonus, the HoverCssClass for the expanded item should be disabled (since the item is no longer clickable). But this could be handled by a separate HoverExpandedCssClass as discussed in one of my previous posts.
Michael Liu
Global Access Group
Top 25 Contributor
Posts: 562
phil Posted: Fri Oct 8, 2004 @ 10:08 AM
We are ever expanding the available options and properties for our components and appreciate your feedback, we will definitely add this to our list of desired features.
Phil Tucker
Software Developer
ComponentArt Inc.
Not Ranked
Posts: 4
HenningVisser Posted: Tue Mar 1, 2011 @ 2:34 PM
Has this feature been added yet?
I also would like the option the disable the expand/collapse feature and have everything expanded all the time.
Computers are like Old Testament gods; lots of rules and no mercy.
Top 10 Contributor
Posts: 1,736
Chris Posted: Mon Mar 14, 2011 @ 12:12 PM

With some javascript and the built in client side API we can achieve this.  Based on 2009.1 or later.

 

Add a client event for BeforeCollapse in the NavBar

 

<ClientEvents>
  <ItemBeforeCollapse EventHandler="BeforeCollapse" />
</ClientEvents>

Now in this method, set_cancel(true) to the event arguments.

 

<script>
  function BeforeCollapse(sender, e) 
  {
    e.set_cancel(true);
  }
</script>

Hope this helps.

 

Cheers,

Christopher Moncayo,
Solutions Architect
ComponentArt Inc.
Page 1 of 1 (4 items)