Click on Button inside RadDataBoundListBox item also firing ItemTap

4 posts, 0 answers
  1. Vitaly
    Vitaly avatar
    6 posts
    Member since:
    Jan 2016

    Posted 28 Jan Link to this post

    Hi, I have RadDataBoundListBox that has ItemTap event. Also I have some buttons inside each item.

    I need if clicked the button, ListBox item ItemTap doesn't also fired. Is there any suggestions?

     

    Thanks

     
     
     
  2. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 02 Feb Link to this post

    Hello Vitaly,

    I believe if you handle the tapped event of the button, the ItemTap event will not fire.

    I hope this helps.

    Regards,
    Ivaylo Gergov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Vitaly
    Vitaly avatar
    6 posts
    Member since:
    Jan 2016

    Posted 04 Feb in reply to Ivaylo Gergov Link to this post

    Should I use something code in Button Click event?

    Because for now, when I click a button inside itemtemplate, ItemTap also firing

  4. Ivaylo Gergov
    Admin
    Ivaylo Gergov avatar
    661 posts

    Posted 09 Feb Link to this post

    Hello,

    If you handle the Tapped event of the button the ItemTap will not fire. For example:

    private void Button_Tapped(object sender, TappedRoutedEventArgs e)
    {
        e.Handled = true;
    }

    I hope this helps.

    Regards,
    Ivaylo Gergov
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top