Prevent RadRating from firing ItemTap

Thread is closed for posting
2 posts, 0 answers
  1. Dave
    Dave avatar
    4 posts
    Member since:
    Aug 2012

    Posted 02 Nov 2012 Link to this post

    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.


    Dave Erwin

  2. Todor
    Todor avatar
    798 posts

    Posted 06 Nov 2012 Link to this post

    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.
        // Display the detail screen.

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

    All the best,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top