As shown in the figure
Hello,
I have an issue regarding the Load on Demand behavior of the Telerik ListView for Xamarin. First i will explain how i defined my ListView and how it should work. The ListView was defined as follows:
<telerikDataControls:RadListView
ItemsSource="{Binding MyTickets}"
SelectedItem="{Binding SelectedTicket, Mode=TwoWay}"
SelectionMode="Single"
HeaderTemplate="{StaticResource HeaderTemplate}"
FooterTemplate="{StaticResource FooterTemplate}"
Grid.Row="3"
IsLoadOnDemandEnabled="True"
LoadOnDemandMode="Automatic">
<telerikDataControls:RadListView.Behaviors>
<prism:EventToCommandBehavior
Command="{Binding ItemTappedCommand}"
EventName="ItemTapped" />
</telerikDataControls:RadListView.Behaviors>
<telerikDataControls:RadListView.Commands>
<telerikListViewCommands:ListViewUserCommand
Id="LoadOnDemand"
Command="{Binding LoadItemsCommand}" />
</telerikDataControls:RadListView.Commands>
<telerikDataControls:RadListView.ItemTemplate>
...
</telerikDataControls:RadListView.ItemTemplate>
</telerikDataControls:RadListView>
I have left out the ItemTemplate since it is not relevant for the problem.
As you can see we use the LoadOnDemandMode Automatic for this ListView to load the Data. When the LoadOnDemand event is triggered we load the data with the LoadItemsCommand. The LoadItemsCommand loads 10 elements at a time which functions as lazy loading. The Telerik ListView default value for the MaxRemainingItems is 10. The problem now is that the LoadItemsCommand is triggered twice when opening the page since only 10 elements are loaded each time. We would like to only load 10 elements each time and if the user scrolls down we want to load the next 10 elements.
To solve this problem we tried creating a custom renderer for the ListView and change the value of MaxRemainingItems. We were able to change the value of MaxRemainingItems in the custom renderer but after doing so our LoadItemsCommand was never triggered when the user was scrolling through the ListView. The custom renderer and Listview were tested for Android. I hope you can help us resolve this issue.
We are using Telerik.UI.for.Xamarin Nuget-Package Version 2022.1.1.
Thank you in advance.
Hey guys,
I am currently implementing a grouping in my Listview. The data is getting grouped by a Datetimevalue.
I can sort the Listview by using this Datetime but then I get the long Datetimevalue inside the header I tryed using stringformat and a valueconverter but without any effect.
Is there a way to modify the output in the groupingheader?
Best regards
Julian
Dear brothers and sisters:
Please help me
There are two stacklayouts in my page. I use radsegmentedcontrol to control their isvisible attribute when switching. When switching, I add a piece of data to the radlistview in stacklayout. When I switch for the first time, I can add data and display it, but when switching for the second time, the data is added into itemssource, and the front page does not display new data
Here is my code,Attached is my video
<?xml version="1.0" encoding="utf-8" ?>
I just put one telerikDataControls:RadListView in my page,No data source is set.But when I run the project, it prompts me for an error
Here is a screenshot of my code
Any help would be greatly appreciated.
Hi Support,
I have a UWP application with a a listview and inside the listview, I have a viewcell, then a grid with 3 columns. The 1st column is a RadNumericInput, 2nd is a string, 3rd is a comboBox. When I click on the + or - button in the RadNumericInput for a row, the value of the NumericInput updates correctly but the row I am working on is NOT selected in the listview as selectedItem. However if I click on the value box of NumericInput, the row is set as the selecteditem in the listview. Is there a way to add code to trigger the listview to select the row when the +/- button is clicked?
I tried the comboBox and the row is selected properly when I select a value inside the comboBox.
Please advise.
Vivian
We had a Xamarin 3 iOS application built using Telerik 2018 components and it was working fine until the recent update in iOS. However, after the iOS update to 15, Xamarin 3 iOS app started crashing. Then we updated our app to Xamarin 5 and were able to successfully compile and run it on an iOS 15 simulator. But the Telerik 2018 controls did not render on screen. So we upgraded Telerik control to 2021 version (trial), and now we are having following error which broke the compilation of the entire project.
you must add a reference to assembly 'netstandard version=2.0.0.0 xamarin
It seems that Telerik 2021 controls have a dependency on netstandard library which is either not supported or cannot be installed from NuGet.
It would be great if you could help us to resolve this issue. This way we would recover our app from crashes, and purchase the latest updates for Telerik.
I have added swipe in RadListView, but the swipe functionality is not working, it is swiping only when swiped from left or right edges.
Following is the code I have used
<telerikDataControls:RadListViewHello,
I'm trying to evaluate the TagIt example. I have it working in a debug environment. It runs on all the simulators (Android and iOS). It runs in UWP as well.
However, when I run it on my iPhone it crashes consistently in the PickerPage view when I display my images. I have hundreds of images in my phone, but the code is only trying to show the first 100.
After the first page of images appears, I swipe up to show the next page, and the application exits. It looks like a crash.
I put unhandled exception handlers in the iOS application (according to this reference - global-error-handling-xamarin-forms). They are not hit, nor do they record any useful exception information. The output log shows no exceptions.
Output Log:
Resolved pending breakpoint at 'AppDelegate.cs:77,1' to void tagit.iOS.AppDelegate.LogUnhandledException (System.Exception exception) [0x00002].
Resolved pending breakpoint at 'AppDelegate.cs:101,1' to void tagit.iOS.AppDelegate.DisplayCrashReport () [0x00007].
Thread started: <Thread Pool> #3
Thread started: <Thread Pool> #4
Thread started: <Thread Pool> #5
Thread started: <Thread Pool> #6
2021-10-06 05:40:45.206 tagit.iOS[13433:3334804] WARNING: This app's CFBundleDevelopmentRegion is not a string value. This can lead to unexpected results at runtime. Please change CFBundleDevelopmentRegion in your Info.plist to a string value.
Thread started: <Thread Pool> #7
Thread started: <Thread Pool> #8
Thread started: <Thread Pool> #9
Thread started: <Thread Pool> #10
Thread started: #11
Thread started: <Thread Pool> #12
Thread started: <Thread Pool> #13
Thread started: <Thread Pool> #14
Thread started: <Thread Pool> #15
2021-10-06 05:40:56.010 tagit.iOS[13433:3334909] A task was canceled.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at FFImageLoading.Work.ImageLoaderTask`3[TDecoderContainer,TImageContainer,TImageView].Init () [0x00164] in <a159011f32534c8eb0455a9cf0bad5a7>:0
2021-10-06 05:40:56.012 tagit.iOS[13433:3335672] A task was canceled.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at FFImageLoading.Work.ImageLoaderTask`3[TDecoderContainer,TImageContainer,TImageView].Init () [0x00164] in <a159011f32534c8eb0455a9cf0bad5a7>:0
2021-10-06 05:40:56.017 tagit.iOS[13433:3334837] A task was canceled.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at FFImageLoading.Work.ImageLoaderTask`3[TDecoderContainer,TImageContainer,TImageView].Init () [0x00164] in <a159011f32534c8eb0455a9cf0bad5a7>:0
2021-10-06 05:40:56.019 tagit.iOS[13433:3334910] A task was canceled.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at FFImageLoading.Work.ImageLoaderTask`3[TDecoderContainer,TImageContainer,TImageView].Init () [0x00164] in <a159011f32534c8eb0455a9cf0bad5a7>:0
2021-10-06 05:40:56.030 tagit.iOS[13433:3334910] A task was canceled.
System.Threading.Tasks.TaskCanceledException: A task was canceled.
at FFImageLoading.Work.ImageLoaderTask`3[TDecoderContainer,TImageContainer,TImageView].Init () [0x00164] in <a159011f32534c8eb0455a9cf0bad5a7>:0
Thread started: <Thread Pool> #16
Thread started: <Thread Pool> #17
The app has been terminated.
Development Environment:
I installed the TagIt app from the App Store. It does the same thing.
Any help would be appreciated.