Is ExpandOnClick = true + CollapseDelay = 0 possible?

Answered (Verified) This post has 1 verified answer and 3 replies

Top 50 Contributor
Posts: 111
wowa777 Posted: Fri Dec 11, 2009 @ 8:42 AM
I've got a menu that depends on which treeview node is clicked. So it's generated again each time one clicks on a treeview node. Because of that it is important that it collapses immediately after the mouse leaves the menu. Now I would like to have the feature that it only expands if you click on the main menu icon. But as soon as I'm using "ExpandOnClick = true" the collapsing doesn't work (until you click somewhere nearby the menu).

You can set the parameters in the Core Menu Features example to the following to see what I mean:

ExpandOnClick = true;
CollapseDuration = 0;
CollapseDelay = 0;

Is this possible?

Answered (Verified) Verified Answer

Top 10 Contributor
Posts: 1,454
Answered (Verified) harish Posted: Mon Dec 14, 2009 @ 5:12 AM
Verified by wowa777

Hello,

 

Thanks for getting back to me.

 

The functionality you are looking for it not possible. Please check similar forum link for same:

 

http://www.componentart.com/community/forums/p/10284/10284.aspx#10284

 

Thanks.

 

Harish Malhotra

 

All Replies

Top 10 Contributor
Posts: 1,454
harish Posted: Fri Dec 11, 2009 @ 11:29 AM

Hello,

 

Thank you for submitting your query with ComponentArt forum.

 

I would like to tell you that the behavior which you are observing is working as design. Web.UI Menu's ExpandOnClick behavior is designed to mimic the way menus work in a Windows application  i.e. clicking will open a MenuItem, and while a MenuItem is expanded, rolling over any other MenuItem will cause it expand, while collapsing the previously expanded MenuItem. Only clicking away from the Menu or selecting an MenuItem will cause the expanded MenuItem to collapse and reset this behavior.

 

Hope it helps you.

 

Thanks.

 

Harish Malhotra

 

Top 50 Contributor
Posts: 111
wowa777 Posted: Sun Dec 13, 2009 @ 11:34 PM
In other words - the behaviour I would like to have (Opening the menu by clicking on it and closing by mouseout) is NOT possible??
Top 10 Contributor
Posts: 1,454
Answered (Verified) harish Posted: Mon Dec 14, 2009 @ 5:12 AM
Verified by wowa777

Hello,

 

Thanks for getting back to me.

 

The functionality you are looking for it not possible. Please check similar forum link for same:

 

http://www.componentart.com/community/forums/p/10284/10284.aspx#10284

 

Thanks.

 

Harish Malhotra

 

Page 1 of 1 (4 items)