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

SfDataGrid custom checkbox cells get cleared during scrolling

Dear SyncFusion,

I am having issues with the SfDataGrid under Xamarin.Android.

Looking at your DataGridSample, I decided to use a checkbox instead of a toggle button for selection of a row. Displaying those custom checkbox cells (UserCellType) works fine, but when I have more data (rows and/or columns) than the display fits and have to scroll, all selected checkboxes are cleared.

Attached is the code for the custom cell (based on FormattedCell.cs in the DataGrid sample).

Any ideas why the checkboxes get cleared?

Thanks in advance,

Michel Uiterwijk
(Multi Software)



Attachment: GridCellCheckBox_a611cf8d.zip

4 Replies

MU Michel Uiterwijk May 16, 2015 01:02 PM UTC

After further investigation there seems to be an issue with scrolling combined with FrozenColumns property.
If I have no frozen columns everything is working fine.

Is this a known issue? And is there a workaround?

Cheers, Michel.


DK Dinesh Kumar B Syncfusion Team May 18, 2015 06:26 AM UTC

Hi Michel,

We tried replacing the files from Formatting samples with attached "CheckBox" file and we couldn't reproduce the issue in both the cases as mentioned on the previous update. We have attached the screen cast for your knowledge , taken while reproducing the issue. It would great if you can share us the sample or more details regarding the issue.

Regards,
Dinesh kumar

Attachment: Archive_2_bf06504e.zip


MU Michel Uiterwijk May 18, 2015 08:35 AM UTC

Dear SyncFusion,

Thank you for the quick reply and screencasts!

Difference in my sample is that my checkbox was placed on the left inside the frozen columns.
Testing was done on a physical device (Samsung S4 mini running Android 4.4.4).

But now after some more testing it turns out that it has to with the INotifyPropertyChanged (INPC).
I didn't have it implemented, but your DataGridSample does have it.
Now all seems to work as it should.

Thanks again for the help and pointing me in the right direction!

Regards, Michel.



DK Dinesh Kumar B Syncfusion Team May 18, 2015 09:11 AM UTC

Hi Michel,

Thanks for your update. 
Please let us know if you need any further assistance.

Regards,
Dinesh kumar

Loader.
Up arrow icon