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
Hi,
On Android, I am using a DataTemplateSelector and a DataTemplate that has a switch on it that the user can press. When the user presses the switch the ListView starts corrupting the data in the list. The item being interacting with starts appearing in other locations on the list.
This issue can be reproduced in the Telerik SDKBrowser project.
Select the following : ListView -> Cell Types -> Template Cell Selector - Xaml
Mark Item1 as special using the button. Scroll down and you will see that an item in the list has been replaced by Item 1 which is now in the list twice.
Regards
Anthony
Hello,
I have a class, a collection of which is displayed in RadListView. If the class has a static property, no single item is displayed in UWP. In Android and iOS it works without this problem.
Regards,
Franz.
If you have a more complex HeaderTemplate containing input controls, each button placed after a certain position does not fire its Click event. If a button is placed at the top of the template, it functions properly.