NullReferenceException on LoadMoreViewButton_Clicked

I'm getting a NullReferenceException when I tap on the Load More button on my SfListView.  Specifically at 0x17 in Syncfusion.Maui.ListView.LoadMoreButton.LoadMoreViewButton_Clicked.  Obviously I haven't set something correctly, but what is it?  What setting am I missing?


<sfListView:SfListView x:Name="listView"

                HeightRequest="{Binding ItemsHeight}"

                ItemSize="75" ItemsSource="{Binding Items}" ItemSpacing="1"

                LoadMoreCommand="{Binding LoadMoreGroupedItemsCommand}"

                LoadMoreCommandParameter="{Binding Source={x:Reference listView}}"

                LoadMoreOption="Manual" LoadMorePosition="End"

                ItemTapped="ItemsListView_ItemTapped">


None of my code has been called yet, so it's hard to debug.


I'm using version 27.1.51 of the Syncfusion.Maui.ListView nuget package.


1 Reply

JR Jayashree Ravishankar Syncfusion Team October 3, 2024 10:33 AM UTC

Hi Kris Peters,

 

We have checked the reported issue using a simple sample, and the LoadMore feature functioned as expected. The exception may arise if the command bound to the LoadMoreCommand is incorrect or has an invalid name.

 

We have attached the sample for your reference. Please review it and let us know if we have missed anything. If possible, kindly share a sample that reproduces the issue, or modify our sample to demonstrate the problem. This will be very helpful for us in finding a solution as soon as possible.

 

Regards,

Jayashree


Attachment: ListViewMaui_4a0d6cac.zip

Loader.
Up arrow icon