the following exceptions occur when upgrading to Xamarin.Forms v 4.0:
System.NotSupportedException: Unable to activate instance of type Telerik.XamarinForms.DataControlsRenderer.Android.ListView.TemplateCellContainer
System.NullReferenceException: Object reference not set to an instance of an object
at Telerik.XamarinForms.InputRenderer.iOS.SegmentedControlRenderer.OnElementDetached
There seems to be 2 issues with Telerik ui for xamarin and Xamarin.AndroidX.Core versions 1.3.2.2 and newer where A) Linker seems to be failing when set to "Sdk Assemblies Only" on Visual Studio 16.9.0.
The other issue is with Telerik RadListView and same AndroidX.Core at runtime I am getting the following exception:
System.TypeLoadException: 'VTable setup of type Telerik.XamarinForms.DataControlsRenderer.Android.ListViewAccessibilityDelegateCompat failed'
Please advise
This can be reproduced using an image with binding for its source.
If the source data has only zero values initially, when the values are changed, the chart does not update its axis range. Available in minor release 2017.3.927. It will also be available in the R3 2017 SP release.
When the SelectionMode of the RadCalendar is Range and you have set a MaxDate - you should not be able to select dates after the MaxDate. However, swipe-selecting cells which are disabled is working. Available in the R3 2018 SP release.
When there are only two items in the ItemsSource and users reorder them, the underlying collection is not reordered Edit: Avalable in R3 2017 SP release.
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'
if you look at the .nuspec file for the Telerik.UI.for.Xamarin.Documents.Flow package there is an entry in the
<framework> assemblies element;
<frameworkAssembly assemblyName=”WindowsBase” targetFramework=””/ >
This is what causes NuGet to drag the WindowsBase assembly in.
we cannot build the iOS project - we get the following error.
The type 'NotifyCollectionChangedAction' exists in both 'System, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' and 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
We are not referencing the WindowsBase assembly directly, but on analyzing the Nuget dependencies we found the following dependency chain;
Telerik.UI.for.Xamarin (2020.3.1106.1) -> Telerik.UI.for.Xamarin.Documents.Flow (2020.3.1019) -> WindowsBase (Framework Assembly)
it seems that WindowsBase (and PresentationCore which is also included) are not intended for Xamarin iOS or Android applications.
When using the __ItemStyle properties of RadListView, they are not being applied if the SelectionMode is set to None. It makes sense that the PressedItemStyle and SelectedItemStyle properties are not used, since they are not applicable if nothing can be selected. However, the ReorderItemStyle in particular should still be used.
Example:
public class ItemStyleNotAppliedExample : ContentPage
{
private readonly ListViewItemStyle WhiteBG = new ListViewItemStyle
{
BackgroundColor = Color.White
};
private readonly ListViewItemStyle YellowBG = new ListViewItemStyle
{
BackgroundColor = Color.Yellow
};
private readonly ListViewItemStyle RedBG = new ListViewItemStyle
{
BackgroundColor = Color.Red
};
private readonly ListViewItemStyle BlueBG = new ListViewItemStyle
{
BackgroundColor = Color.Blue
};
public ItemStyleNotAppliedExample()
{
BackgroundColor = Color.Gray;
var items = new ObservableCollection<Item>
{
new Item("Item 1"),
new Item("Item 2"),
new Item("Item 3"),
new Item("Item 4"),
new Item("Item 5"),
};
Content = new RadListView
{
SelectionMode = SelectionMode.None,
IsItemsReorderEnabled = true,
ItemsSource = items,
ItemTemplate = new DataTemplate(typeof(ItemView)),
ItemStyle = WhiteBG,
PressedItemStyle = YellowBG,
SelectedItemStyle = RedBG,
ReorderItemStyle = BlueBG,
};
}
private class Item
{
public string Name { get; }
public Item(string name)
{
Name = name;
}
}
private class ItemView : ListViewTemplateCell
{
public ItemView()
{
var checkbox = new CheckBox
{
VerticalOptions = LayoutOptions.Center
};
var label = new Label
{
VerticalOptions = LayoutOptions.Center
};
label.SetBinding(Label.TextProperty, nameof(Item.Name));
View = new StackLayout
{
BackgroundColor = Color.Transparent,
Orientation = StackOrientation.Horizontal,
Children =
{
checkbox,
label
}
};
}
}
}
Available in the R3 2017 release.
We have a RadCalendar and we set the CalendarViewMode to "Year". And we tap on an arbitrary month in order to open it (change the ViewMode to "Month"). EXPECTED result: The selected (tapped) month is opened, i.e. the ViewMode is changed to "Month". And this is happening on Android. ACTUAL result: On iOS the result is this exception: System.InvalidCastException: Unable to cast object of type 'TelerikUI.TKCalendarYearPresenter' to type 'UIKit.UIView'
Item tapped is raised after hold gesture in IOS listview. The control should recognize a hold gesture is initiated and item tapped event should not be raised.
Hello,
RadPopup control causes memory leaks on iOS.
Here is the repro project https://github.com/VitalyKnyazev/RadPopupLeak
Thanks
Vitaly
There are 2 approaches to customize the theme -> directly override the resources in the BlueResources dictionary or create a custom resource dictionary and merge it instead of the BlueResources one. If you take the first approach in a .NET standard project and override one of the colors -> an ArgumentException is thrown: Use the second approach as a workaround where you create a custom resource dictionary, copy all the colors from the original one and modify them within your custom one. Available in the R3 2018 SP release.