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

RadJumpList with ContextMenu and IsCheckModeActive="True"

1 Answer 35 Views
JumpList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 03 Oct 2014, 05:27 AM
Hi

I want to use Contextmenu and CheckMode in the Jumplist. 

When the user taps on checkbox then the checkbox will be activated and the context menu is not displayed.
But when the user tabs on ItemTemplate (text) this will show context menu AND the checkbox will be activated. I would like to show the context menu only.
How can I do this?

<telerikDataControls:RadJumpList ItemsSource="{Binding Appointments}" IsCheckModeActive="True" IsCheckModeEnabled="False" >
    <telerikDataControls:RadJumpList.ItemTemplate>
        <DataTemplate>
            <StackPanel Margin="0 -12 0 24">
                <!-- ContextMenu -->
                <telerikPrimitives:RadContextMenu.ContextMenu>
                    <telerikPrimitives:RadContextMenu OpenGesture="Tap" IsZoomEnabled="True" >
                        <telerikPrimitives:RadContextMenuItem Content="Download"/>
                        <telerikPrimitives:RadContextMenuItem Content="Open"/>
                    </telerikPrimitives:RadContextMenu>
                </telerikPrimitives:RadContextMenu.ContextMenu>
 
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{Binding StartDateTime, StringFormat=t}" Style="{StaticResource PhoneTextTitle2Style}" />
                    <TextBlock Text="{Binding Worker}" Style="{StaticResource PhoneTextTitle2Style}" />
                </StackPanel>
            </StackPanel>
        </DataTemplate>
    </telerikDataControls:RadJumpList.ItemTemplate>
</telerikDataControls:RadJumpList>

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 07 Oct 2014, 01:15 PM
Hi Michael,

Thank you for contacting us.

You have to handle the Tap event for the root element in the ItemTemplate and set the context menu for some inner element. I have attached a sample project for demonstration.

I hope this helps.

Regards,
Rosy Topchiyska
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
JumpList
Asked by
Michael
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or