Issue with DataGrid control when using with RG Popup Control

I am using SFDataGrid control inside RG Popup control, https://github.com/rotorgames/Rg.Plugins.Popup.

I am facing a weird issue when trying to do the left/right swipe on the rows, the rows are getting dragged and its very hard to show the left swipe edit template.

I am using the code which i have attached



Attachment: popupPage_bae5de75.zip

3 Replies

JA Jayaraman Ayyanar Syncfusion Team April 9, 2018 11:15 AM UTC

 
Thanks for using Syncfusion product. 
 
We have checked your query for the “Issue with DataGrid control when using with RG Popup Control”. We have prepared a sample with the provided Xaml page and we have checked the swiping feature in the DataGrid with the LeftSwipeTemplate to load the image and label where you have reported that swiping is lagging in the DataGrid. If you set the source for the image in Xaml page and keep the image in the renderer which perform the swiping operation delayed. As of now you can use the BindingContextChanged in the image to set the image path in the code behind and this will get resolve your issue. We suspect the lagging of the swiping while set the image path as source in Xaml is the framework issue. We need to validate further about the issue and we will provide you the further details on or before 04/12/2018. 
 
Please refer the below code logics to overcome the issue. 
 
Xaml logics 
  <Image Grid.Column="0" 
         BackgroundColor="Transparent"  
         HorizontalOptions="CenterAndExpand"  
         WidthRequest="24"  
         HeightRequest="24" 
         BindingContextChanged="Image_BindingContextChanged" /> 
 
C# logics 
private void Image_BindingContextChanged(object sender, EventArgs e) 
        { 
            if (!isEditBindingContextChanged) 
            { 
                var editIcon = sender as Image; 
                editIcon.Source = ImageSource.FromResource("SfDataGridSample.Edit.png"); 
            } 
        } 
 
We have prepared a sample for your requirement and you can download the same from the below link. 
 
Regards, 
Jayaraman. 



JA Jayaraman Ayyanar Syncfusion Team April 12, 2018 05:59 AM UTC

 
We have checked your query with the image loading from the renderer in the android. The image loads delayed when setting the image from the renderer and we confirm this is the framework issue and we have also reported in the bugzilla for the same. Please refer below. 
 
 
You can follow the link to get resolve this issue and we will also follow up the same from the Xamarin team. So, as of now you can set the image in the BindingContextChanged to get resolve this issue. 
 
Regards, 
Jayaraman. 



JA Jayaraman Ayyanar Syncfusion Team April 18, 2018 04:01 PM UTC

Hi  Vishal,   
  
The reported issue is resolved in the Xamarin 3.0 pre3 release. We would also like to inform you that we may possible upgrade to support Xamarin 3.0 version once if release the stable version at least a couple of weeks before our main release. However, you can get this information through our read me for every release.  
 
Please verify the below link for more details about the reported framework issue.   
  
Until then you can set the image in the BindingContextChanged to get resolve this issue.  
 
Regards, 
Jayaraman. 


Loader.
Up arrow icon