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.
Unfortunately, activation email could not send to your email. Please try again.

SfDataGrid custom checkbox cells get cleared during scrolling

Thread ID:

Created:

Updated:

Platform:

Replies:

119158 May 15,2015 09:29 AM May 18,2015 05:11 AM Xamarin.Android 4
loading
Tags: General
Michel Uiterwijk
Asked On May 15, 2015 09:29 AM

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

Michel Uiterwijk
Replied On May 16, 2015 09:02 AM

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.

Dinesh Kumar B [Syncfusion]
Replied On May 18, 2015 02:26 AM

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

Michel Uiterwijk
Replied On May 18, 2015 04:35 AM

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.


Dinesh Kumar B [Syncfusion]
Replied On May 18, 2015 05:11 AM

Hi Michel,

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

Regards,
Dinesh kumar

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.

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.

;