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. Image for the cookie policy date

Scrolling in DataGrid, poor performance with UWP

Hello, I have an SfDataGrid with approximately 55 columns and 4 frozen columns, and when scrolling horizontally, nothing works fine, I attach the result.

You can replicate the result in UWP with the Horizontal Scrolling example from your demo, only download the repository from https://github.com/syncfusion/xamarin-demos and modify the next files:
  • xamarin-demos-master\Forms\DataGrid\DataGrid\Samples\Model\OrderInfoRepository.cs changing this method

        internal OrderInfo GenerateOrder(int id)

        {

            var shipcountry = this.shipCountry[this.random.Next(5)];

            var shipcitycoll = this.shipCity[shipcountry];

            var order = new OrderInfo()

            {

                OrderID = (id + 10000).ToString(),

                EmployeeID = this.random.Next(1700, 1800).ToString(),

                CustomerID = this.customerID[this.random.Next(15)],

                IsClosed = (id % this.random.Next(1, 10) > 5) ? true : false,

                FirstName = this.firstNames[this.random.Next(15)],

                LastName = this.lastNames[this.random.Next(15)],

                Gender = this.genders[this.random.Next(5)],

                ShipCity = shipcitycoll[this.random.Next(shipcitycoll.Length - 1)],

                ShipCountry = this.shipCountry[this.random.Next(5)],

                Freight = Math.Round(this.random.Next(1000) + this.random.NextDouble(), 2),

                ShippingDate = this.orderedDates[this.random.Next(15)],

                ShippingDate1 = this.orderedDates[this.random.Next(15)],

                ...

                ShippingDate44 = this.orderedDates[this.random.Next(15)]

            };

            return order;

        }

  • xamarin-demos-master\Forms\DataGrid\DataGrid\Samples\Model\OrderInfo.cs adding this 44 properties at the end

        private DateTime shippingDate1;

        public DateTime ShippingDate1

        {

            get => this.shippingDate1;

            set

            {

                this.shippingDate1 = value;

                this.RaisePropertyChanged("ShippingDate1");

            }

        }

        ...

        ...

        private DateTime shippingDate44;

        public DateTime ShippingDate44

        {

            get => this.shippingDate44;

            set

            {

                this.shippingDate44 = value;

                this.RaisePropertyChanged("ShippingDate44");

            }

        }

  • xamarin-demos-master\Forms\DataGrid\DataGrid\Samples\DiagonalScrolling\DiagonalScrolling.xaml adding to SfDataGrid this line

        FrozenColumnsCount="4"


Waiting for your answers.
Thanks in advance.

Attachment: horizontalscrolling_e4be6dde.7z

5 Replies

SK Shivagurunathan Kamalakannan Syncfusion Team September 18, 2019 05:17 AM

Hi Salvador,  
 
Thank you for contacting Syncfusion support. 
 
  
We have checked the video and analyzed the sample based on the provided code snippet. The issue “Flickering occurs when reusing the view in virtualization control in Xamarin.Form.UWP” is a known issue and the issue occurs from the framework side. We had already logged a bug report in the framework. 
 

We are having follow-up for the same, we will let you know once we got any solution. We appreciate your patience until then. 
 
  
Regards,
Shivagurnathan
 



SR Salva Rondan September 18, 2019 07:12 AM

Thanks for your reply.


FP Farjana Parveen Ayubb Syncfusion Team September 18, 2019 11:03 PM

Hi Salvador, 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Farjana Parveen A 



BG Benito Gomez July 1, 2020 02:39 AM

Hi,

Any update about that problem?

We are using a SfDataGrid with a few columns. The first one is configured with MinimumWidth and ColumnSizer.LastColumnFill. The other columns have fixed Width and ColumnSizer.None. The dataGrid has FrozenColumnsCount = 1.

With this configuration, we are experiencing the same issues exposed in this thread. 

Is available some fix for that? or the problem is still on the Xamarin.Forms side?

Thank you!


KK Karthikraja Kalaimani Syncfusion Team July 2, 2020 12:01 AM

Hi Benito,

 
We have checked with 4.6 Xamarin Forms version but unfortunately the issue still persist from FrameWork side and also we didn’t receive proper update from Xamarin Team. We will let you know once we got proper solution from Xamarin team.

Regards,
Karthik Raja



Loader.
Live Chat Icon For mobile
Up arrow icon