DoubleTapped event don't fire when touch or double click in text area.

3 posts, 1 answers
  1. Manuel
    Manuel avatar
    8 posts
    Member since:
    Aug 2015

    Posted 09 Jan Link to this post

    But if I touch in blank area of the cell, its work fine.

     

    Any solution for this?

     

    Thanks.

  2. Answer
    Nikolay
    Admin
    Nikolay avatar
    389 posts

    Posted 12 Jan Link to this post

    Hello Manuel,

    We've performed tests locally using the Universal Windows Platform SDK Examples, that you can find in your installation folder here : 
    <install folder>\UI for Universal Windows Platform R3 2016\SampleApps\SDKExamples.UWP. The specific example we have used is Grid -> Edit Mode. We have subscribed to the DoubleTapped event and it is fired every time the user tries to edit a cell. 

    Could you, please, share some more details on your specific scenario. Do you get the same event when you edit a cell or do you expect the event fired again when the cell is in edit mode and the user double taps again? 

    Regards,
    Nikolay
    Telerik by Progress
    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. Manuel
    Manuel avatar
    8 posts
    Member since:
    Aug 2015

    Posted 12 Jan in reply to Nikolay Link to this post

    Sorry, was my fault.

     

    I was trying get only doubletapped in cells, using this:

            private async void radDataGrid_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
            {
                if (e.OriginalSource.GetType() == typeof(DataGridCellsPanel))
                {

                }
            }

     

    But, when tap in text area the type is TextBlock.  I finally solved in this way, to avoid doubletap in headers:

            private async void radDataGrid_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
            {
                if (e.OriginalSource.GetType() == typeof(DataGridCellsPanel) || (e.OriginalSource.GetType() ==  typeof(TextBlock) && (e.OriginalSource as TextBlock).Parent != null))
                {

                }
            }

     

    Thanks for your support.

Back to Top