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

Click on Button inside RadDataBoundListBox item also firing ItemTap

3 Answers 7 Views
DataBoundListBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Vitaly
Top achievements
Rank 1
Vitaly asked on 28 Jan 2016, 01:47 PM

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

 
 
 

3 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 02 Feb 2016, 09:20 AM
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
0
Vitaly
Top achievements
Rank 1
answered on 04 Feb 2016, 10:42 AM

Should I use something code in Button Click event?

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

0
Ivaylo Gergov
Telerik team
answered on 09 Feb 2016, 10:57 AM
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
Tags
DataBoundListBox
Asked by
Vitaly
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Vitaly
Top achievements
Rank 1
Share this question
or