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"}
};
}
}
Hi Team,
The current time feature is not coming in Dayview, it is coming in Multidayview only, Please let us know how to achieve it in DayView?
Please refer to the atthached SnapShot .
Thanks,
/Vinu
Appointments in MonthView can be shown inside day cells as shapes or as text (with and without shape) - this is controlled by DisplayMode property of the AppointmentsStyle.
Currently, when using Text DisplayMode there is an additional label indicating the amount of the appointments for a certain day that remain hidden (due to not enough space). We should provide some kind of indication in case of Shape DisplayMode that there are more appointments inside the day cell.
When the DataGrid a few rows of data and scrolls to page 3 or above, the edit mode will be cancelled quickly and cannot be edited.
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);
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
When I update Telerik.UI.for.Xamarin to v2021.1.119.1, I got following error:
Unable to resolve dependency 'Telerik.UI.for.Xamarin.Documents.Spreadsheet.FormatProviders.Xls'. Source(s) used: 'nuget.org', 'Telerik', 'Microsoft Visual Studio Offline Packages'.
Could you help to take a look? Thanks
When building against XF5 and after migrating a project you can get the following error:-
Severity Code Description Project File Line Suppression State
Error failed linking file resources. App1.Android
Error '5dp' is incompatible with attribute verticalOffset (attr) float [weak]. App1.Android
Error '10dp' is incompatible with attribute horizontalOffset (attr) float [weak]. App1.Android
It appears to be a conflict between
<PackageReferenceInclude="Xamarin.Google.Android.Material"Version="1.2.1.1" />
and Telerik assemblies.
If a dummy app is built with that Nuget it all works fine until the Nuget
<PackageReference Include="Telerik.UI.for.Xamarin" Version="2021.1.119.1" />
is added.
So you can have one or the other but not both.
Please see this GitHub thread where its discussed more and a sample app is posted.
(I am user Gmotagi in it)
https://github.com/xamarin/Xamarin.Forms/issues/13303