Tap event overwrite Click on OnDemandManual

4 posts, 0 answers
  1. bento
    bento avatar
    35 posts
    Member since:
    Aug 2013

    Posted 08 Sep 2013 Link to this post

    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>
  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 12 Sep 2013 Link to this post

    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.
  3. DevCraft banner
  4. bento
    bento avatar
    35 posts
    Member since:
    Aug 2013

    Posted 14 Sep 2013 Link to this post

    Thank you Deyan, 

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

    Regards,
    Benyamin
  5. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 16 Sep 2013 Link to this post

    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.
Back to Top
DevCraft banner