I have a fairly simple listview that display 3 columns that works perfectly fine for Android. When I run it in iOS the listview is there (I put a weird color background to verify it is visible), but it has no items.
<telerikDataControls:RadListView Grid.Row="2" x:Name="Locations" ItemsSource="{Binding CurrentLocationList}"
VerticalScrollBarVisibility="Always" VerticalOptions="FillAndExpand" ItemTapped="Locations_ItemTapped" BackgroundColor="Aqua">
<telerikDataControls:RadListView.ItemTemplate>
<DataTemplate>
<telerikListView:ListViewTemplateCell>
<telerikListView:ListViewTemplateCell.View>
<StackLayout Orientation="Horizontal" Margin="5,5,5,5">
<Label Text="{Binding Name}" FontSize="20" VerticalOptions="Center" />
<Label Text="{Binding Id}" HorizontalOptions="EndAndExpand" FontSize="20" VerticalOptions="Center" />
<local:GrayRadioButton x:Name="rbtSelectedLocation" IsChecked="{Binding Selected}" GroupName="grpLocation" />
</StackLayout>
</telerikListView:ListViewTemplateCell.View>
</telerikListView:ListViewTemplateCell>
</DataTemplate>
</telerikDataControls:RadListView.ItemTemplate>
</telerikDataControls:RadListView>
Is there some setting necessary for it to work in iOS?
Thanks.
I am updating with some screen shots.
Android:
iOS
Whenever there is an issue of Telerik views not showing up the issue is always gonna be packages not being available in the native or forms project.
On the RadListView's getting started screen you can find the DLL's that your project would need to have.
Make sure your portable project has the following DLL's:
Telerik.XamarinForms.Common.dll
Telerik.XamarinForms.DataControls.dll
Telerik.XamarinForms.Primitives.dll
Telerik.XamarinForms.SkiSharp.dll
And your iOS project needs to have the following:
Telerik.Xamarin.iOS.dll
Telerik.XamarinForms.Common.dll
Telerik.XamarinForms.DataControls.dll
Telerik.XamarinForms.Primitives.dll
Telerik.XamarinForms.SkiSharp.dll
Also make sure you read this warning:
WARNING: RadListView control provides UI virtualization, this feature requires the visual parent to provide vertical or horizontal space. To avoid breaking UI virtualization or gesture mechanisms, please follow these rules: Do not place the RadListView control inside a StackLayout Do not place the RadListVew inside a ScrollView Do not set the RadListVew to a Grid RowDefinition Height="Auto" For additional information and solutions for these layouts, please check the Controls are not Appearing article.