This is a migrated thread and some comments may be shown as answers.

Expansion and Collapse of RadMenu on Clic|

4 Answers 149 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Sunil
Top achievements
Rank 1
Sunil asked on 07 Jul 2011, 11:27 AM
I want a menu to Expand and Collapse on mouse click .
 How an i do it
 ? 


Thank you.

4 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 07 Jul 2011, 11:41 AM
Hello Sunil,

Try setting the property ClickToOpen to True.

aspx:
<telerik:RadMenu ID="RadMenu1" runat="server"  ClickToOpen="true">
. . . . . . . .
</telerik:RadMenu>

Thanks,
Shinu.
0
Sunil
Top achievements
Rank 1
answered on 07 Jul 2011, 01:01 PM
Thanks Shinu for quick response..

But i dont want it to collapse when i perform other operations... only on specific button i want to close
which will be inside menu Item template.

Once it is opened i need to refer other page and do some operation so i want it to be opened untill i close manually.

And in my application there are two RadCombobox in RadMenuItem ItemTemplate which will be have postback for SelectedIndexChange 
event.The moment i select item in combobox it collapse.... 

0
Shinu
Top achievements
Rank 2
answered on 07 Jul 2011, 02:53 PM
Hello Sunil,

Try attaching OnClientItemClosing and cancel the event based on the condition.

Javascript:
function OnClientItemClosing(Sender, args)
   {
       if (args.get_domEvent() == null)
       {
           args.set_cancel(true);
       }
   }

Thanks,
Shinu.
0
Sunil
Top achievements
Rank 1
answered on 07 Jul 2011, 05:25 PM
Thanks Shinu...
I'l Try this, Thanks a lot
Tags
Menu
Asked by
Sunil
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Sunil
Top achievements
Rank 1
Share this question
or