Welcome to the Xamarin.Forms feedback portal. We’re happy you’re here! If you have feedback on how to improve the Xamarin.Forms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,


We create the SfDataGrid programmatically together with an SfDataPager, the data is loaded dynamically with the OnDemandLoading event.


We have subscribed to the PropertyChanged event of the SfAdatGrid and when the height of the SfDatagrid is changed we recalculate the page size.


Once the page size is calculated, we try to update the PageCount and PageSize properties, causing an "Out of range" exception within the SfDataGrid control for access to some list.


As a workaround we have invoked the LoadDynamicItems function before modifying the PageCount and PageSize properties.


It seems that when updating the properties, you try to access a position in the list of items to be shown on the screen that does not exist, however, what should occur is that the OnDemandLoading event is launched to reload the data of the displayed page.



Regards.