Telerik Forums
UI for Xamarin Forum
3 answers
153 views

Hello,

I'm using a SegmentedControl in a Content View :

<telerikInput:RadSegmentedControl Grid.Row="1" HeightRequest="50" HorizontalOptions="Center" VerticalOptions="Center"
                                              ItemsSource="{Binding LargeImages}"
                                              SelectedIndex="{Binding SelectedIndex, Mode=TwoWay}"
                                              AutomationId="ImagesSegmentedControl">
            </telerikInput:RadSegmentedControl>

 

On my ViewModel : I initialize the LargeImages collections as in the QSF samples.

this.LargeImages = new ObservableCollection<ImageSource>()
                    {
                        CreateImage("zero2.png"),
                        CreateImage("on.png"),
                        CreateImage("pendule.png")
                    };
 
private static ImageSource CreateImage(string name)
        {
            if (Device.RuntimePlatform == Device.UWP)
            {
                name = string.Format("Assets/{0}", name);
            }
 
            return ImageSource.FromFile(name);
        }

When displaying on Android, all the images keep there original scale.

On Ios, all the images are "distorted". 

I make screenshot on a Android example and an Ios example. You can see that on Ios, it's not good.

I there template options that i can use to make it work ?

Didi
Telerik team
 answered on 18 Feb 2019
3 answers
122 views

When I upgrade from R3 2018 to R1 2019, ListViews with <telerikDataControls:RadListView.GroupDescriptors> will not render any content. Removing <telerikDataControls:RadListView.GroupDescriptors> results in the ListView rendering, but without any GroupHeaders.

Here's the full ListView that fails. To make it work, remove the GroupDescriptors tag.

 

<telerikDataControls:RadListView
                x:Name="list"
                GroupHeaderTemplate="{StaticResource ListViewGroupHeaderTemplate}"
                IsVisible="{Binding IsLoadingHotlist, Converter={StaticResource NegateBooleanConverter}}"
                ItemsSource="{Binding ItemsHotlist}"
                BackgroundColor="White"
                IsPullToRefreshActive="{Binding IsBusyHotlist}"
                IsPullToRefreshEnabled="True"
                SelectionMode="Single">
 
 
    <!-- GROUP BY -->
    <telerikDataControls:RadListView.GroupDescriptors>
        <!-- TRICK I use a HotListGroupHeaderConverter to change the Date here to a nice pretty print -->
        <telerikListView:PropertyGroupDescriptor PropertyName="GroupBySort"  SortOrder="Ascending" />
    </telerikDataControls:RadListView.GroupDescriptors>
 
 
    <!-- COMMANDS -->
    <!-- COMMANDS -->
    <!-- COMMANDS -->
 
    <telerikDataControls:RadListView.Commands>
        <commands:ListViewUserCommand Id="PullToRefreshRequested" Command="{Binding RefreshHotlistCommand}" />
        <commands:ListViewUserCommand Id="ItemTap" Command="{Binding HotlistTapCommand}" />
    </telerikDataControls:RadListView.Commands>
 
 
    <!-- TEMPLATE CELLS -->
    <!-- TEMPLATE CELLS -->
    <!-- TEMPLATE CELLS -->
 
    <telerikDataControls:RadListView.ItemTemplateSelector>
        <vm:HotlistItemSelector
                        AppointmentTemplate="{StaticResource AppointmentCellTemplate}"
                        TaskTemplate="{StaticResource TaskCellTemplate}"
                        ErrorTemplate="{StaticResource ErrorCellTemplate}"/>
    </telerikDataControls:RadListView.ItemTemplateSelector>
 
 
</telerikDataControls:RadListView>
Didi
Telerik team
 answered on 18 Feb 2019
1 answer
114 views
Is it possible to bind ListViewItemStyle properties to item properties? or can you only bind to properties on the list itselfs binding context?  For example I'd like to change the border color for each item based on the status of each item.  I could implement something like this within the ListViewTemplateCell but it would make things a whole lot easier if I could do  it on the style.
Yana
Telerik team
 answered on 18 Feb 2019
1 answer
126 views

Hi Team,

I am using TKCalendar for my iOS App and am using custom data cell as instructed in documents.

I need to disable user action on particular dates .

how could it be achieved?

 

Thanks,

Avinash

 

 

Yana
Telerik team
 answered on 13 Feb 2019
1 answer
397 views

Hi,

I'm just starting out with xamarin.forms datagrid and I was looking for the paging method that I use with Asp.Net MVC.

I can only find LoadOnDemand. Is this the recommended method to retrieve more data in a grid?

 

Regards,

Graham

Yana
Telerik team
 answered on 13 Feb 2019
5 answers
992 views

We are using Telerik purely for the RadSideDrawer, and have referenced Telerik.UI.for.xamarin.lite.

According to the documentation, should not need any SkiSharp reference for this as its only the 'lite' version.

Yet when build with the release version with the Android Linking set to "SDK assemblies only" we get the following build error:

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorThe "LinkAssemblies" task failed unexpectedly.
Java.Interop.Tools.Diagnostics.XamarinAndroidException: error XA2006: Could not resolve reference to 'Telerik.XamarinForms.SkiaSharp.StrokeKey' (defined in assembly 'Telerik.XamarinForms.PdfViewer, Version=2019.1.131.340, Culture=neutral, PublicKeyToken=null') with scope 'Telerik.XamarinForms.SkiaSharp, Version=2019.1.131.340, Culture=neutral, PublicKeyToken=null'. When the scope is different from the defining assembly, it usually means that the type is forwarded. ---> Mono.Cecil.ResolutionException: Failed to resolve Telerik.XamarinForms.SkiaSharp.StrokeKey
   at Mono.Linker.Steps.MarkStep.HandleUnresolvedType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkGenericArguments(IGenericInstance instance)
   at Mono.Linker.Steps.MarkStep.GetOriginalType(TypeReference type)
   at Mono.Linker.Steps.MarkStep.MarkType(TypeReference reference)
   at MonoDroid.Tuner.MonoDroidMarkStep.MarkType(TypeReference reference)
   at Mono.Linker.Steps.MarkStep.MarkField(FieldReference reference)
   at Mono.Linker.Steps.MarkStep.InitializeFields(TypeDefinition type)
   at Mono.Linker.Steps.MarkStep.InitializeType(TypeDefinition type)
   at Mono.Linker.Steps.MarkStep.InitializeAssembly(AssemblyDefinition assembly)
   at Mono.Linker.Steps.MarkStep.Initialize()
   at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
   at Mono.Linker.Pipeline.Process(LinkContext context)
   at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   --- End of inner exception stack trace ---
   at Java.Interop.Tools.Diagnostics.Diagnostic.Error(Int32 code, Exception innerException, String message, Object[] args)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
   at Xamarin.Android.Tasks.LinkAssemblies.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()PortableClient.Droid

Yana
Telerik team
 answered on 13 Feb 2019
5 answers
220 views

Hi,

 

not have any properties of Value or Text?

And why the Displayed only Get?

"DisplayedText: Gets the displayed text.(Read-only)"

 

How can I load data and bind to RadMaskedInput to show data?

Thanks.

Lance | Senior Manager Technical Support
Telerik team
 answered on 12 Feb 2019
1 answer
118 views

I am trying to use a TreeView to show data read from a webservice.  However, I have a special requirement.  Normally the presence of the ExpandCollapseIndicator is determined by the return value of CanExecute function of the LoadOnDemandCommand.  A custom item template would include the ExpandCollapseIndicator and bind its IsLoadOnDemandEnabledProperty to TreeViewDataItem.IsLoadOnDemandEnabled.  This works fine if the ability to expand/collapse remains constant. I need the ability to change the value of TreeViewDataItem.IsLoadOnDemandEnabled AFTER the tree node has been initialized.  Normally, I would just do OnPropertyChanged(nameof(IsLoadOnDemandEnabled)) but I do not have access to that since TreeViewDataItem is a wrapper around my own data model class.  I do not have access to TreeViewDataItem.

 

So how can I force an update to the ExpandCollapseIndicator AFTER the tree node has been initialized as my CanExecute function of LoadOnDemandCommand will now return a different value?

Yana
Telerik team
 answered on 12 Feb 2019
3 answers
274 views

hi,

In RadListView, ListViewTextCell Text is not vertically center aligned in both ListViewGridLayout and ListViewLinearLayout LayoutDefinition modes. Tested in Android. list is in grid row where height is set to Auto.

<telerikDataControls:RadListView   x:Name="EventStatusListView" 
                                                         SelectionMode="Multiple" Margin="10,0,0,0"
                                                          VerticalOptions="Fill">
            <telerikDataControls:RadListView.ItemTemplate>
                <DataTemplate>
                    <telerikListView:ListViewTextCell Text="{Binding name}"/>
                </DataTemplate>
            </telerikDataControls:RadListView.ItemTemplate>
            <telerikDataControls:RadListView.LayoutDefinition>
                <telerikListView:ListViewGridLayout SpanCount="3" HorizontalItemSpacing="1" VerticalItemSpacing="1" />
            </telerikDataControls:RadListView.LayoutDefinition>
 
            <telerikDataControls:RadListView.ItemStyle>
                <telerikListView:ListViewItemStyle BackgroundColor="Transparent"
                                                                   BorderWidth="1" TextCellTextColor="Green"
                                                                   BorderLocation="All"
                                                                   BorderColor="Gray"/>
            </telerikDataControls:RadListView.ItemStyle>
 
            <telerikDataControls:RadListView.SelectedItemStyle>
                <telerikListView:ListViewItemStyle TextCellTextColor="White"
                                                                   BackgroundColor="DarkGreen"
                                                                   BorderLocation="All"/>
            </telerikDataControls:RadListView.SelectedItemStyle>
 
            <telerikDataControls:RadListView.PressedItemStyle>
                <telerikListView:ListViewItemStyle TextCellTextColor="Green"
                                                                   BorderColor="Gray" BorderWidth="5" BorderLocation="All"/>
            </telerikDataControls:RadListView.PressedItemStyle>
        </telerikDataControls:RadListView>

 

 

Didi
Telerik team
 answered on 12 Feb 2019
1 answer
206 views

Is there a way to show busy indicator on top of all the pages when data is downloading using RadBusyIndicator. Example: When The User navigates to a different page and the data is still downloading a BusyIndicator is displayed on all the pages indicating download is in progress.

Thanks.

Lance | Senior Manager Technical Support
Telerik team
 answered on 11 Feb 2019
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?