I'm using a Radcontextmenu in a RadScheduler and I need to be able to set the X and Y offset position of where this context menu appears. How can I achieve this?
thanks!
<telerik:RadContextMenu ID="appointmentContextMenu" runat="server" OnClientItemClicked="appointmentitem_clicked"> <Items> <telerik:RadMenuItem Text="Edit Details" Value="EventDetails" /> <telerik:RadMenuItem Text="Edit Assets" Value="EventAssets" /> <telerik:RadMenuItem Text="Edit Resources" Value="EventResources" /> <telerik:RadMenuItem Text="Delete Event" Value="DeleteEvent" /> <telerik:RadMenuItem Text="Event Outline" Value="EventOutline" /> </Items> </telerik:RadContextMenu>thanks!
5 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 14 Oct 2010, 07:26 AM
Hello,
I hope adding the following CSS on page will help you in setting offest for RadContextmenu for RadScheduler.
CSS:
One more suggestion: You could use the integrated context menus for both Appointments and Time Slots of RadScheduler than usng another RadContextMenu control.
Scheduler / Context Menu
-Shinu.
I hope adding the following CSS on page will help you in setting offest for RadContextmenu for RadScheduler.
CSS:
<style type="text/css"> .RadMenu_Context, .RadMenu_Default_Context { padding-left: 100px !important; padding-top: 100px !important; }</style>One more suggestion: You could use the integrated context menus for both Appointments and Time Slots of RadScheduler than usng another RadContextMenu control.
Scheduler / Context Menu
-Shinu.
0
Matt
Top achievements
Rank 1
answered on 14 Oct 2010, 08:16 PM
That works for moving the context menu down and right, but i'm needing to move it left. I tried padding-right:100px but it doesn't move the box at all.
How can I move the box if I need it to move left?
thanks,
How can I move the box if I need it to move left?
thanks,
0
Hello Matt,
You can use contextMenu.showAt(x, y); as shown in this demo.
Regards,
Peter
the Telerik team
You can use contextMenu.showAt(x, y); as shown in this demo.
Regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Matt
Top achievements
Rank 1
answered on 15 Oct 2010, 03:26 PM
I don't want a x/y position in the page, i just want it to show up to the left of where the mouse is when i right-click, instead of the right of the mouse.
0
Perhaps you need Right-to-left mode, so please try the following setting:
<telerik:RadContextMenu ID="RadContextMenu1" dir="rtl" runat="server">
Kind regards,
Peter
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items