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

Does RadJumpList work with EventTrigger on SelectionChanged?

1 Answer 61 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.
Simon
Top achievements
Rank 1
Simon asked on 22 May 2011, 10:04 PM
Hi,
I'm having a problem using an interaction trigger (EventToCommand) with the RadJumpList.

Xaml:
<telerikDataControls:RadJumpList x:Name="jumpList" ItemsSource="{Binding Items}">
    <i:Interaction.Triggers>
        <i:EventTrigger EventName="SelectionChanged">
            <cmd:EventToCommand Command="{Binding Path=DetailsPageCommand, Mode=OneWay}" CommandParameter="{Binding SelectedItem, ElementName=jumpList}" /> 
        </i:EventTrigger>
    </i:Interaction.Triggers>
.
.
.

ViewModel:
.
.
.
public RelayCommand<Item> DetailsPageCommand { get; private set; }
  
public ItemViewModel
{
    DetailsPageCommand = new RelayCommand<Item>((msg) => GoToDetailsPage(msg));
}
  
private object GoToDetailsPage(Item msg)
{
    MessageBox.Show("Go to details page with: " + msg.ItemId); return null;
}
.
.
.

The GoToDetailsPage is receiving a null msg, however if I swop it out for a standard ListBox everything works just fine.

Am I doing something wrong? Or does the RadJumpList not support the interaction trigger way?

Cheers
Simon

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 23 May 2011, 10:50 AM
Hello Simon,

Thanks for contacting us and for reporting this issue.

We have tried to reproduce the case but to no avail. Therefore we would like to ask you to prepare a sample WP7 application that we can use to reproduce the case and thus be able to see what actually goes wrong.

Please note that you will have to open a new support ticket in order to be able to upload your project.

Thanks for the time taken and for your understanding.

We look forward to receiving the requested details.

Greetings,
Deyan
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
JumpList
Asked by
Simon
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or