Using a bound sfRating control inside a GridTemplateColumn makes scrolling freeze

I created a simple ContentPage bound to a simple ViewModel class that binds the ItemsSource to a DataTable.  The page contains a sfDataGrid control with a GridTemplateColumn that has a sfRating control.  The Value property of the sfRating control is bound to the first column of the data table.  This all displays correctly, but when scrolling diagonally the app will eventually freeze.  It seems to only happen when the Value of the sfRating is bound.  When I set it to a static value, it works correctly.  To reproduce it, here is the ViewModel:

using System.Data;
using System;

namespace Tabular.Mobile.ViewModels
{
class ItemsVM : VMBase
{
private DataTable _testTable = new DataTable();
public DataTable TestTable { get => _testTable; set => _testTable = value; }

public ItemsVM()
{
_testTable.Columns.Add("ItemNumber", typeof(int));
_testTable.Columns.Add("ItemName", typeof(string));
_testTable.Columns.Add("ItemString1", typeof(string));
_testTable.Columns.Add("ItemString2", typeof(string));
_testTable.Columns.Add("ItemString3", typeof(string));
_testTable.Columns.Add("ItemString4", typeof(string));
_testTable.Columns.Add("ItemString5", typeof(string));
_testTable.Columns.Add("ItemDateTime", typeof(DateTime));

_testTable.Rows.Add(1, "Item 1", "String11", "String12", "String13", "String14", "String15", DateTime.Now);
_testTable.Rows.Add(2, "Item 2", "String12", "String22", "String23", "String24", "String25", DateTime.Now);
_testTable.Rows.Add(3, "Item 3", "String13", "String32", "String33", "String34", "String35", DateTime.Now);
_testTable.Rows.Add(4, "Item 4", "String14", "String42", "String43", "String44", "String45", DateTime.Now);
_testTable.Rows.Add(5, "Item 5", "String15", "String52", "String53", "String54", "String55", DateTime.Now);
_testTable.Rows.Add(6, "Item 6", "String16", "String62", "String63", "String64", "String65", DateTime.Now);
_testTable.Rows.Add(7, "Item 7", "String17", "String72", "String73", "String74", "String75", DateTime.Now);
_testTable.Rows.Add(8, "Item 8", "String18", "String82", "String83", "String84", "String85", DateTime.Now);
_testTable.Rows.Add(9, "Item 9", "String19", "String92", "String93", "String94", "String95", DateTime.Now);
_testTable.Rows.Add(10, "Item 10", "String101", "String102", "String103", "String104", "String105", DateTime.Now);
}
}
}

And here is the ContentPage:

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:d="http://xamarin.com/schemas/2014/forms/design"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
         xmlns:vm="using:Tabular.Mobile.ViewModels"
     xmlns:grid="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms"
     xmlns:rating="clr-namespace:Syncfusion.SfRating.XForms;assembly=Syncfusion.SfRating.XForms"
     mc:Ignorable="d"
             x:Class="Tabular.Mobile.Views.ItemsListPage">
    <ContentPage.Content>
<StackLayout Orientation="Vertical">
<StackLayout.BindingContext>
<vm:ItemsVM />
</StackLayout.BindingContext>
<grid:SfDataGrid x:Name="sfGrid"
ColumnSizer="Auto"
AllowEditing="False"
NavigationMode="Cell"
ItemsSource="{Binding TestTable}"
AutoGenerateColumns="True"
AllowPullToRefresh="False">
<grid:SfDataGrid.Columns>
<grid:GridTemplateColumn HeaderText="Rating"
MappingName="ItemNumber"
Width="210">
<grid:GridTemplateColumn.CellTemplate>
<DataTemplate>
<StackLayout>
<rating:SfRating Value="{Binding [0]}"
ItemCount="10"
ItemSize="15"
IsEnabled="False" />
</StackLayout>
</DataTemplate>
</grid:GridTemplateColumn.CellTemplate>
</grid:GridTemplateColumn>
</grid:SfDataGrid.Columns>
</grid:SfDataGrid>
</StackLayout>
</ContentPage.Content>
</ContentPage>

It seems to be related to the rendering of the sfRating control.  As I mentioned, it only happens when the binding is set on the Value property of the sfRating control.  Do you know what could be happening?

Thanks,

Alfredo


14 Replies 1 reply marked as answer

KK Karthikraja Kalaimani Syncfusion Team June 2, 2020 02:46 PM UTC

Hi Alferdo,

We could able to reproduce the issue in Xamarin forms Android platform. Moreover, this rendering occurs even setting direct value to Value property of SfRating. Currently we are validating the reported issue and we will validate and update you further details on or before 4th June 2020.

In Meantime please update the below details. It will help us to check the issue.

i) In which Xamarin Forms version are you using?

ii) SfDataGrid version

iii) video of the issue

Regards,
Karthik Raja




AL Alfredo June 2, 2020 04:38 PM UTC

Hi Karthik,

I am glad to hear you're able to reproduce the problem, I hope that makes it easier to fix.  I am using Xamarin.Forms version 4.6.0.800, sfDataGrid version 18.1.0.55 and sfRating version 18.1.0.55 also.  I've also attached a video of the problem.

Thank you for your support!  Let me know how this issue is resolved.

Alfredo Diaz


Attachment: sfDataGrid_Freezing_Problem_ccf7693b.zip


KK Karthikraja Kalaimani Syncfusion Team June 3, 2020 02:52 PM UTC

Hi Alferdo,

 
Thanks for the update. We will update further details on 4th June 2020. We appreciate your patience until then.

Regards,
Karthik Raja 



KK Karthikraja Kalaimani Syncfusion Team June 4, 2020 01:34 PM UTC

 
Hi Alferdo,

Still we need some more time to analyze the issue. We will update further details on or before 8th June 2020. We appreciate your patience until then.

Regards,
Karthik Raja
 



KK Karthikraja Kalaimani Syncfusion Team June 8, 2020 11:55 AM UTC

 
Hi Alferdo,

Currently, we are working with SfRating team. We will update further details on or before 10th June 2020.

We appreciate your patience until then.

 
Regards,
Karthik Raja
 



AL Alfredo June 8, 2020 08:56 PM UTC

Thank you for the updates and for your great support Karthik!
Alfredo


FP Farjana Parveen Ayubb Syncfusion Team June 9, 2020 10:00 AM UTC

Hi Alferdo, 
 
Thank you for the update. 
 
As we promised earlier, currently we are working with SfRating team. We will update further details on or before 10th June 2020. 

We appreciate your patience until then.
 
 
Regards, 
Farjana Parveen A 



SP Sakthivel Palaniyappan Syncfusion Team June 10, 2020 10:57 AM UTC

Hi Alferdo,

Thanks for the patience.

We are able to reproduce the reported issue and  we have logged bug report internally for this issue. We will fix and include the fix in our upcoming Volume 2, 2020 main release which is expected to be rolled out on end of June 2020.We appreciate your patience until then.


Please let us know, if you have any concern.

Regards,
Sakthivel P. 



PR Padmini Ramamurthy Syncfusion Team June 11, 2020 05:21 AM UTC

From: Alfredo Diaz
Sent: Wednesday, June 10, 2020 11:56 AM
To: Syncfusion Support <[email protected]>
Subject: RE: Syncfusion support community forum 154805, Using a bound sfRating control inside a GridTemplateColumn makes scrolling freeze, has been updated.
 
  
That’s great news – your support is fantastic .  Thank you Sakthivel!  . 
 
Alfredo 
 



KK Karthikraja Kalaimani Syncfusion Team June 12, 2020 02:25 PM UTC

Hi Alfredo,

We will let you know once we fixed the issue. We appreciate your patience until then.

Regards,
Karthik Raja
 



SP Sakthivel Palaniyappan Syncfusion Team July 7, 2020 02:45 PM UTC

Hi Alfredo,

Sorry for the inconvenience.

We have fixed the reported issue, but due to some technical problem we could not include the fix in our Volume 2, 2020 main release. We have generated patch with 18.2.0.44 for this fix, please download the path from the following location.

Please find the patch setup from below location:
http://syncfusion.com/Installs/support/patch/18.2.0.44/1257679/F154805/SyncfusionPatch_18.2.0.44_1257679_7072020081647817_F154805.exe
 

(OR)

Please find the patch assemblies alone from below location:

http://syncfusion.com/Installs/support/patch/18.2.0.44/1257679/F154805/SyncfusionPatch_18.2.0.44_1257679_7072020081647817_F154805.zip

(OR)

Please find the NuGet from below location:
http://syncfusion.com/Installs/support/patch/18.2.0.44/1257679/F154805/SyncfusionNuget_18.2.0.44_1257679_7072020081647817_F154805.zip

Assembly Version: 18.2.0.44

Disclaimer:
Please note that we have created this patch for version 18.2.0.44 specifically to resolve the following issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.

Note: Please clear the cache, before the apply the provided patch
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache

This fix will be included in our upcoming weekly NuGet release. Which will be available on July 14, 2020.

Regards,
Sakthivel P.
 


Marked as answer

SP Sakthivel Palaniyappan Syncfusion Team July 14, 2020 12:46 PM UTC

Hi Alfredo,

Thanks for the patience.

We are glad to announce that our weekly NuGet version 18.2.0.45 was rolled out and the fix for the reported was included in the weekly NuGet.

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

Regards,
Sakthivel P.



AL Alfredo July 14, 2020 02:56 PM UTC

That's fantastic, thank you for your consistently excellent support!
Alfredo Diaz



SS Suganya Sethuraman Syncfusion Team July 16, 2020 12:29 PM UTC

Hi Alfredo, 


 
Thanks for the valuable feedback. 


 
Please get back to us if you need any further assistance. 


 
Regards, 
Suganya Sethuraman. 
 


Loader.
Up arrow icon