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

[Solved] How to implement context menu on right click in Rad Scheduler of Silverlight 3

3 Answers 173 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
prabhat
Top achievements
Rank 1
prabhat asked on 24 Sep 2010, 12:39 PM
Hi,

Please provide me the steps including an example to implement the context menu on right click in Rad Scheduler available in  RadControls_for_Silverlight_3_2010_1_0603_DEV.

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 27 Sep 2010, 07:35 AM
Hello prabhat,

Please check this how-to article:
RadScheduler > How-to add context menu

Best wishes,
Veselin Vasilev
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
prabhat
Top achievements
Rank 1
answered on 27 Sep 2010, 12:43 PM
Hi Veselin,

We have applied the same steps which is mentioned in your suggested article BUT context menu item is still not available on right mouse button click. Following are the steps i performed:
1) Added Windowless="true" in the following code:
<asp:Silverlight ID="Silverlight1" runat="server" Windowless="true" Source="~/ClientBin/IntuitivEMR.xap" MinimumVersion="3.0.40307.0" Width="100%" Height="100%" />
2) <param name="windowless" value="true" /> is already there in IntuitivEMR.html file.
3) Added the following code within telerikscheduler:RadScheduler

<

 

telerikscheduler:RadScheduler>
    <telerikNavigation:RadContextMenu.ContextMenu>

 

 

 

        <telerikNavigation:RadContextMenu ItemClick="RadContextMenu_ItemClick">

 

 

 

        <telerikNavigation:RadMenuItem Header="Open" />

 

 

 

        <telerikNavigation:RadMenuItem Header="Delete" />

 

 

 

        </telerikNavigation:RadContextMenu>

 

 

 

    </telerikNavigation:RadContextMenu.ContextMenu>

 

 

 

</telerikscheduler:RadScheduler>
4) Following code is already there:
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
5) Added the following code in .cs
private void RadContextMenu_ItemClick(object sender, Telerik.Windows.RadRoutedEventArgs e)

 

{

}

Am i missing something here? Please not that we are using Rad Scheduler available in RadControls_for_Silverlight_3_2010_1_0603_DEV.

Thanks in advance and waiting for your reply

0
Pana
Telerik team
answered on 28 Sep 2010, 08:06 AM
Hi Prabhat,

I have failed to reproduce the issue. The right-click is easily enabled on my side. I have created a demo project with the scheduler and right-click menu enabled plus a movie that shows the key points in the project and its working.

I hope the attached solution will help you.

Greetings,
Panayot
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
Tags
General Discussions
Asked by
prabhat
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
prabhat
Top achievements
Rank 1
Pana
Telerik team
Share this question
or