this is list view with loadondemand active
<
telerikDataControls:RadListView
Grid.Row
=
"1"
x:Name
=
"RecentEvents"
ItemsSource
=
"{Binding PreviewEvents, Mode=TwoWay}"
VerticalOptions
=
"FillAndExpand"
ItemTapped
=
"RecentEvents_ItemTapped"
SelectionMode
=
"Single"
IsLoadOnDemandEnabled
=
"True"
LoadOnDemandMode
=
"Manual"
LoadOnDemand
=
"RecentEvents_LoadOnDemand"
IsPullToRefreshEnabled
=
"False"
>
<
telerikDataControls:RadListView.ItemTemplate
>
<
DataTemplate
>
<
telerikListView:ListViewTemplateCell
>
<
telerikListView:ListViewTemplateCell.View
>
<
templates:RecentEventTemplate
/>
</
telerikListView:ListViewTemplateCell.View
>
</
telerikListView:ListViewTemplateCell
>
</
DataTemplate
>
</
telerikDataControls:RadListView.ItemTemplate
>
<
telerikDataControls:RadListView.LoadOnDemandItemTemplate
>
<
DataTemplate
>
<
Grid
WidthRequest
=
"{Binding LoadMoreWidth}"
HeightRequest
=
"40"
BackgroundColor
=
"Gray"
HorizontalOptions
=
"CenterAndExpand"
VerticalOptions
=
"CenterAndExpand"
IsVisible
=
"{Binding IsLoadMoreVisible,Mode=TwoWay}"
>
<
Label
HorizontalOptions
=
"CenterAndExpand"
Text
=
"{i18n:Translate CALENDAR_LOAD_MORE_EVENTS}"
HorizontalTextAlignment
=
"Center"
FontSize
=
"Small"
VerticalTextAlignment
=
"Center"
/>
</
Grid
>
</
DataTemplate
>
</
telerikDataControls:RadListView.LoadOnDemandItemTemplate
>
</
telerikDataControls:RadListView>
private async void RecentEvents_LoadOnDemand(object sender, EventArgs e)
{
//RecentEvents.EndRefresh(false);
var vm = (HomePageViewModel)ViewModel;
await vm.GetRecentEvents(true);
}
Issue is : After first time "Load More" button get disabled. (Doesnt seem to click) . Soon after loading it works. Once it is clicked it loads the new items as well. After that the "Load More" but is not clickable. Atleast click doesnt seem to trigger the RecentEvents_LoadOnDemand event.
Any issues which could be the reason for this?
Thank you in advance