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

Prevent RadRating from firing ItemTap

1 Answer 31 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.
Dave
Top achievements
Rank 1
Dave asked on 02 Nov 2012, 12:14 PM
I have a RadRating control inside of the ItemTemplate for a JumpList. Is there any way to allow the rating to be changed without causing an ItemTap event? Alternatively is there a way to determine what item was tapped in the ItemTemplate inside the ItemTap event handler? I use ItemTap to display a detail screen but I would like to be able to change the rating of an item from the JumpList.

Thanks,

Dave Erwin

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 06 Nov 2012, 01:14 PM
Hi Dave,

Thank you for your question.

You can use our ElementTreeHelper to determine what element inside your ItemTemplate was tapped. Here is the example for RadRating:
private void OnJumpList_ItemTap(object sender, Telerik.Windows.Controls.ListBoxItemTapEventArgs e)
{
    RadRating parent = ElementTreeHelper.FindVisualAncestor<RadRating>(e.OriginalSource);
    if (parent != null)
    {
        //RadRating was tapped.
        return;
    }
    // Display the detail screen.
}

I hope this information helps. Let me know if I can assist you further.

All the best,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
JumpList
Asked by
Dave
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or