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

Tap event overwrite Click on OnDemandManual

3 Answers 48 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.
bento
Top achievements
Rank 2
bento asked on 08 Sep 2013, 11:17 AM
I have problem when using Tap event on RadDataBoundListBox in OnDemandManual,
the event Click "btnLoadMorePopular_Click" cannot trigger,
but AllLatest_Tap is trigger when the button is clicked. How to solve this ?

Thanks

<
telerikPrimitives:RadDataBoundListBox x:Name="Popular"
                                        Tap="AllLatest_Tap"
                                        CacheMode="BitmapCache"
                                        DataVirtualizationMode="OnDemandManual">
     <telerikPrimitives:RadDataBoundListBox.ItemTemplate>
         <DataTemplate>
           .....
         </DataTemplate>
     </telerikPrimitives:RadDataBoundListBox.ItemTemplate>
     <telerikPrimitives:RadDataBoundListBox.DataVirtualizationItemTemplate>
         <DataTemplate>
             <Button Margin="-12, 0, -12, 0"
                     Content="load more"
                     x:Name="btnLoadMorePopular"
                     Click="btnLoadMorePopular_Click" />
         </DataTemplate>
     </telerikPrimitives:RadDataBoundListBox.DataVirtualizationItemTemplate>
 </telerikPrimitives:RadDataBoundListBox>

3 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 12 Sep 2013, 06:42 AM
Hello Benyamin,

Thanks for writing.

I have tried to reproduce this behavior on my side by using the Tap (not Click) event on the Button inside the data virtualization template and it all works fine for me. Can you please check this out on your side and see if it behaves as expected?

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
bento
Top achievements
Rank 2
answered on 14 Sep 2013, 04:03 PM
Thank you Deyan, 

I change "Click" event on load more button to "Tap" and works well. :)

Regards,
Benyamin
0
Deyan
Telerik team
answered on 16 Sep 2013, 08:03 AM
Hi Benyamin,

Thanks for writing back.

Good to know that you've managed to overcome the difficulties.

We will consider this thread closed for now. Let us know if you need further assistance.

Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
DataBoundListBox
Asked by
bento
Top achievements
Rank 2
Answers by
Deyan
Telerik team
bento
Top achievements
Rank 2
Share this question
or