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

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

2 Answers 36 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Manuel
Top achievements
Rank 1
Manuel asked on 09 Jan 2017, 02:25 PM

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

 

Any solution for this?

 

Thanks.

2 Answers, 1 is accepted

Sort by
0
Accepted
Nikolay
Telerik team
answered on 12 Jan 2017, 08:10 AM
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
0
Manuel
Top achievements
Rank 1
answered on 12 Jan 2017, 08:31 AM

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.

Tags
DataGrid
Asked by
Manuel
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Manuel
Top achievements
Rank 1
Share this question
or