Hello,
I'd been testing the trial version of the Telerik chart control for Xamarin in an Android app. Because it was working well, I'd purchased a license yesterday. And, I replaced the NuGet trial package with the license package. So far, so good.
However, now, when I try to build the project, it fails. (I've tried building both the Release and Debug version.)
The errors I see are below:
Severity Code Description Project File Line Suppression State
Error failed linking references. Ble.Client.Android
Error resource style/MainTheme.Base (aka com.companyname.ble.client:style/MainTheme.Base) not found. Ble.Client.Android
ErrorNU1301 Failed to retrieve information about 'Xamarin.AndroidX.AppCompat' from remote source 'https://packagesource/FindPackagesById()?id='Xamarin.AndroidX.AppCompat'&semVerLevel=2.0.0'. Ble.Client.Android D:\2023_devwork\BLE_Xamarin\XamarinBleCodeBehind-main\XamarinBleCodeBehind-main\Ble.Client\Ble.Client.Android\Ble.Client.Android.csproj 1
Any thoughts as to what might have broken, and, what I need to do in order to resolve the issue? (In case it helps, I'm including a screen capture of the Visual Studio 2022 output window.)
Thanks!
--Donn Morse
The scrollbar on UWP is blocking the content (including the options button which is also not clickable because of it
Workaround: Add a style for the column header and apply margin to the Options button:
<ContentPage.Resources>
<ResourceDictionary>
<telerikGrid:DataGridColumnHeaderStyle x:Key="headerstyle"
TextColor="Black" OptionsButtonMargin="0,0,20,0"
OptionsButtonFontSize="30"
BorderColor="Black"
BorderThickness="2"/>
</ResourceDictionary>
</ContentPage.Resources>
<Grid>
<telerikGrid:RadDataGrid ItemsSource="{Binding Items}" BackgroundColor="Red" AutoGenerateColumns="false">
<telerikGrid:RadDataGrid.Columns>
<telerikGrid:DataGridTextColumn PropertyName="Country" HeaderStyle="{StaticResource headerstyle}"/>
<telerikGrid:DataGridTextColumn PropertyName="Capital" HeaderStyle="{StaticResource headerstyle}"/>
</telerikGrid:RadDataGrid.Columns>
</telerikGrid:RadDataGrid>
</Grid>
Having a ComboBox inside the RadListView ItemTemplate.
Binding the ComboBox SelectedItems.
On UWP when PropertyChanged is called on an item in the ListView, it fires the ComboBox SelectedItems CollectionChanged with action Remove, which is wrong behavior. And as a result the ComboBox SelectedItems collection is cleared.
On Android an iOS works as expected, the ComboBox SelectedItems collection is not cleared.
Unable to deploy Xamarin app with Telerik Document Processing dlls when AOT is true in Release configuration.
An error with text like is displayed in Visual Studio:
XABLD7028: System.IO.FileNotFoundException: Could not find file '...\....Droid\obj\Release\120\aot\armeabi-v7a\libaot-Telerik.Documents.Fixed.dll.so'
DataBindingComplete event of the DataGrid should be fired when the associated data (ItemsSource) has been successfully bound to the control or any data operation like Group, Sort or Filter is applied. Currently the event handler is not called as expected.
LongPress is called on element that is already disposed.
ObjectDisposedException is thrown:
at Telerik.XamarinForms.Common.NativeGestureRecognizer.ToDip
at Telerik.XamarinForms.Common.GestureListener.OnLongPress
Stack-Trace
Xamarin Exception Stack: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Xamarin.Forms.Platform.Android.Platform+DefaultRenderer'. at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in <2e109281f9514c53b44688fd4549adb2>:0 at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeNonvirtualObjectMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in <2e109281f9514c53b44688fd4549adb2>:0 at Android.Views.View.get_Context () [0x0000a] in <9d68875f5dbd432db5314e1c0d96cb02>:0 at Telerik.XamarinForms.Common.NativeGestureRecognizer.ToDip (System.Single px) [0x00000] in <9f139977bc32402dabe4bb05ac247bb2>:0 at Telerik.XamarinForms.Common.GestureListener.OnLongPress (Android.Views.MotionEvent e) [0x0000c] in <9f139977bc32402dabe4bb05ac247bb2>:0 at Android.Views.GestureDetector+IOnGestureListenerInvoker.n_OnLongPress_Landroid_view_MotionEvent_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x0000f] in <9d68875f5dbd432db5314e1c0d96cb02>:0 at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.102(intptr,intptr,intptr)
The issue occurs on the following device:
Android: 12Please refer to this issue: https://feedback.telerik.com/xamarin/1509502-errors-with-latest-versions-of-androidx
Hello this problem seems to be still prevalent in "Release" mode when using the individual libraries as well, in my case I am referencing the lite libraries from telerik nuget (Telerik.UI.for.Xamarin.Input.Lite + Telerik.UI.for.Xamarin.DataControls.Lite 2021.3.915.1).Combobox, selection mode multiple.
Select the third item:
And you get this:
(also note the +1 circle going over the border)
However, set selected items programatically, and you get this:
There's plenty of space in the control.
Open the dropdown:
Still plenty of space, but... the button has disappeared.
Collapse it by clicking somewhere outside the control and you get back to the measurement bug:
The app crashes randomly when scrolling through the images loaded from the tagit app.
The crash occurs on iPhone SE 2020 iOS 14.8, it doesn't crash every time you scroll through the images, the crash appears randomly.
crash on iPhone X iOS 14.8
The issue cannot be reproduced on iPhone 12 ProMax iOS 14.8.
I want to use a sticky header listview.
I using the following code to render the sticky header list.
XML page code:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TEST.Views.AboutPage"
xmlns:vm="clr-namespace:TEST.ViewModels"
xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
xmlns:telerikListView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.XamarinForms.DataControls"
Title="{Binding Title}"
>
<ContentPage.BindingContext>
<vm:AboutViewModel />
</ContentPage.BindingContext>
<ContentPage.Resources>
<ResourceDictionary>
<Color x:Key="Accent">#96d1ff</Color>
</ResourceDictionary>
<DataTemplate x:Key="ListViewItemTemplate">
<telerikListView:ListViewTemplateCell>
<telerikListView:ListViewTemplateCell.View>
<Grid Padding="16, 0, 0, 0" BackgroundColor="#F1F2F5" HeightRequest="100">
<Label Text="{Binding Name}" TextColor="#6F6F70" FontSize="Small" />
</Grid>
</telerikListView:ListViewTemplateCell.View>
</telerikListView:ListViewTemplateCell>
</DataTemplate>
<DataTemplate x:Key="ListViewGroupHeaderTemplate">
<Grid HeightRequest="40">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Label Margin="0, 12, 0, 6" Text="{Binding }" Grid.Column="1" TextColor="DarkGray" FontSize="Medium" HorizontalOptions="Start" />
</Grid>
</DataTemplate>
<telerikListView:ListViewGroupStyle x:Key="ListViewGroupHeaderStyle" BackgroundColor="White" />
</ContentPage.Resources>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<telerikDataControls:RadListView
x:Name="listView"
ItemsSource="{Binding Cities}"
ItemTemplate="{StaticResource ListViewItemTemplate}"
GroupHeaderTemplate="{StaticResource ListViewGroupHeaderTemplate}"
GroupHeaderStyle="{StaticResource ListViewGroupHeaderStyle}"
IsGroupHeaderSticky="True"
Grid.Row="0"
>
<telerikDataControls:RadListView.GroupDescriptors>
<telerikListView:PropertyGroupDescriptor PropertyName="Country"/>
</telerikDataControls:RadListView.GroupDescriptors>
<telerikDataControls:RadListView.LayoutDefinition>
<telerikListView:ListViewGridLayout HorizontalItemSpacing="5"
ItemLength="120"
SpanCount="2"
VerticalItemSpacing="5" />
</telerikDataControls:RadListView.LayoutDefinition>
</telerikDataControls:RadListView>
</Grid>
</ContentPage>
ViewModels:
public class City
{
public string Name { get; set; }
public string Country { get; set; }
}
public class ViewModel
{
public ObservableCollection<City> Cities { get; set; }
public ViewModel()
{
this.Cities = new ObservableCollection<City>()
{
new City() { Name = "Barcelona", Country = "Spain"},
new City() { Name = "Madrid", Country = "Spain"},
new City() { Name = "Barcelona", Country = "Spain"},
new City() { Name = "Madrid", Country = "Spain"},
new City() { Name = "Rome", Country = "Italy"},
new City() { Name = "Florence", Country = "Italy"},
new City() { Name = "Florence", Country = "Italy"},
new City() { Name = "London", Country = "England"},
new City() { Name = "Manchester", Country = "England"},
new City() { Name = "Manchester", Country = "England"},
new City() { Name = "Manchester", Country = "England"},
new City() { Name = "Manchester", Country = "England"},
new City() { Name = "Manchester", Country = "England"},
new City() { Name = "Manchester", Country = "England"},
new City() { Name = "Manchester", Country = "England"},
new City() { Name = "New York", Country = "USA"},
new City() { Name = "New York", Country = "USA"},
new City() { Name = "New York", Country = "USA"},
new City() { Name = "New York", Country = "USA"},
new City() { Name = "New York", Country = "USA"},
new City() { Name = "New York", Country = "USA"},
new City() { Name = "New York", Country = "USA"},
new City() { Name = "Boston", Country = "USA"}
};
}
}
We are attempting to use the chart's CartesianPlotBandAnnotation to highlight a section of a graph on a DateTimeContinuousAxis. This works well on Android, but in our code it produces an exception on iOS (stack trace below).
I attempted to reproduce the problem with the SDKBrowser solution. I converted the PlotBandAnnotationsCSharp to use a DateTimeContinuousAxis on the horizontal axis, and TemporalData for the ViewModel. When I try to run this on an iOS simulator, it doesn't even navigate to the page; maybe an exception is being thrown and caught that I can't see.
I'm attaching the revised SDKBrowser solution, and including the stack trace from our app (below).
System.ArgumentNullException: Value cannot be null.
Hi telerik team,
I know, my case is very specific, but I got this Bug and need to fix it somehow.
About: I have a RadSideDrawer in which I have a Collection View in which Header I have a Carousel View. When I rotate the phone in landscape mode the items are resized. After rotate back to portrait they are resized, but a lot of space appeare between them. So the layout is somekind wrong calculated.
This only occure in this combination on iOS. If I remove the RadSideDrawer it works, if I remove the Collection View it also works, but both together not.
Reprosteps: Create a view with carousel embedded into the header of collection view embedded in to RadSideDrawer. (see attachment)
Rotate to landscape, rotate back to portrait mode.
System information:
iOS
xamarin: 5.0.0.2012
xamarin telerik ui: 2021.1.119.4
If you have a workarround for me, I will be very happy. Somehow to trigger a recalculation might help. I tryed set some InvalidateMeasure and ForceLayout but it didn't help. Either it don't work ot I apply it wrong.
Any help is welcome!
Best regards,
Niko
Hi,
I had developed an Xamarin application, in a modal I open a PdfViewer.
PdfViewerPage pdfViewer = new PdfViewerPage(item.IdAllegato, item.Path, item.FlagScaricabile);
Navigation.PushModalAsync(pdfViewer);
I assign a url to the PdfViewer source.
pdfViewer.Source = new Uri(uri);