We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Crash on Android when quickly tapping on SfDataGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

121632 Jan 11,2016 08:58 AM UTC Jan 12,2016 03:24 PM UTC Xamarin.Android 1
loading
Tags: SfDataGrid
Denis Lapiner
Asked On January 11, 2016 08:58 AM UTC

We have a 100% reproducable crash with the SfDataGrid. Is there anyone who had simmilar problems?

Below is the minimal code base that will cause the app to crash when the user taps rapidly with two fingers on the grid (full project attached).

using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
using Syncfusion.SfDataGrid;

namespace SfDataGridCrash
{
    public class Test
    {
        public string T1 { get { return "T1"; } }
        public string T2 { get { return "T2"; } }
        public string T3 { get { return "T3"; } }
    }

    [Activity(Label = "SfDataGridCrash", MainLauncher = true, Icon = "@drawable/icon")]
    public class MainActivity : Activity
    {
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.Main);

            LinearLayout layout = FindViewById<LinearLayout>(Resource.Id.MainLayout);
            SfDataGrid grid = new SfDataGrid(BaseContext);
            grid.SourceType = typeof(Test);
            grid.ItemsSource = new Test[] { new Test(), new Test(), new Test() };
            grid.SelectionMode = SelectionMode.Single;
            layout.AddView(grid);
        }
    }
}


We could reproduce this behaviour on all our Samsung and Getac tablets.
Sometimes it takes 100 taps, but sometimes it happens when the user double clicks an item during the normal use of our app.

Attachment: SfDataGridCrash_7ead70d2.zip

Prasanth Karthikeyan [Syncfusion]
Replied On January 12, 2016 03:24 PM UTC

Hi Denis,

Thanks for using Syncfusion Products.

We were able to reproduce the issue “SfDataGrid crashes when Tapping rapidly with two fingers”. The problem here is when you tap two different rows, while tapping rapidly the grid tries to select both the tapped rows at the same time and hence the grid crashes as this is not possible with single selection as mode. We have fixed this issue internally and the fix for the reported issue will be available in our Volume 4 Service Pack 1 which will be available by the mid of February 2016.

Please let us know if you have any query.

Regards,
Prasanth

 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;