Does RadJumpList work with EventTrigger on SelectionChanged?

2 posts, 0 answers
  1. Simon
    Simon avatar
    11 posts
    Member since:
    May 2011

    Posted 22 May 2011 Link to this post

    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
  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 23 May 2011 Link to this post

    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>>
  3. DevCraft banner
Back to Top