Telerik Forums
UI for Xamarin Forum
1 answer
100 views

Our app contains a calendar that displays events; it's created at launch and not destroyed until app close, and uses SetStyleForCell to highlight the current date.
We noticed that when the app is left running overnight, the next morning the previous day is still highlighted as "Today", then if the actual current date is tapped, both days are highlighted.

Is there any way to force it to refresh?

Rosy Topchiyska
Telerik team
 answered on 11 Oct 2016
4 answers
293 views

Hello,

I'm using your RadListView and I noticed that I have poor performance when I scroll it at the first time I enter in a page.

After the first scroll all seems to be more smooth, but if I go out and the re enter inside the same page I still have the same problem.

This is really bad because the user have a poor user experience using the app; I remember that xamarin suffred of this problem some times ago, but it was solved introducing the caching strategy option.

What is the way offered by telerik to manage this problem?

I wasn't able to find info neither looking in the forum nor in documentation, thank you

Fabio
Top achievements
Rank 1
 answered on 07 Oct 2016
12 answers
246 views

I have a chart embedded in a carousel, and ultimately in a UIScrollView, inside the iOS renderer. Has anyone gotten this to work? It works fine in Android, but not iOS. 

It seems like the chart plot area is hijacking any attempts to pan the scroll view, because I can scroll the charts using any other part of the view in the carousel, including both components outside the chart and the chart axes themselves.

Has anyone used this chart like that, or do the devs know of an issue preventing the pan gesture from bubbling up? Thanks.

Stephen
Top achievements
Rank 1
 answered on 06 Oct 2016
1 answer
111 views

Hi Telerik,

I have met the following problem:

I have a Xamarin solution with Android, iOS and UWP projects. I am using a RadPieChart to display some information. For each slice of the RadPieChart, using the LabelBinding property, I am showing a label with the slice's name and the slice's percentage. 

In Android and iOS, as the label's information is shown inside the chart, this works perfect. But, in UWP, as the label's information it is shown outside the chart, sometimes, this information doesn't fit on the screen (attached images). Is there any way to show in UWP label's information inside the chart (as Android or iOS) or make it fit on the screen (without reducing chart's size)?

 

Thanks

Vladislav
Telerik team
 answered on 06 Oct 2016
4 answers
360 views

Hi,

I've been working with a trial version for a while which is I think a release older than the current. Today I purchased the full version and I've been having trouble getting it to work.

I get the following crash t if I set the Linker Behavior to "Don't Link":

Can't find custom attr constructor image: /Users/xxxx/Library/Developer/CoreSimulator/Devices/xxx/data/Containers/Bundle/Application/xxx/xxx.iOS.app/Telerik.Xamarin.iOS.dll mtoken: 0x0a000079

Unhandled loader error: 7, (null) Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065 ObjCRuntime.UserDelegateTypeAttribute
error: * Assertion: should not be reached at ../../../../../mono/mono/metadata/loader.c:299
critical: Stacktrace:

 

If I set the Linker Behavior to: Link Framework SDKs only, I get a compiler error:

 

MTOUCH: Error MT2002: Failed to resolve "System.Void ObjCRuntime.UserDelegateTypeAttribute::.ctor(System.Type)" reference from "Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065" (MT2002) (xxx.iOS)

 

Anyone can shed some light into this please? I have installed UI by manually referencing needed dlls as per docs here: http://docs.telerik.com/devtools/xamarin/controls/chart/chart-getting-started

Below is the dev environment info

=== Xamarin Studio Community ===

Version 6.0.2 (build 73)
Installation UUID: 184f2bac-7590-4ddb-9312-6066744f2adb
Runtime:
Mono 4.4.2 (mono-4.4.0-branch-c7sr1/f72fe45) (64-bit)
GTK+ 2.24.23 (Raleigh theme)

Package version: 404020011

=== Xamarin.Profiler ===

Not Installed

=== Apple Developer Tools ===

Xcode 7.3.1 (10188.1)
Build 7D1014

=== Xamarin.Mac ===

Not Installed

=== Xamarin.iOS ===

Version: 9.8.2.22 (Xamarin Studio Community)
Hash: f37444a
Branch: cycle7-sr1
Build date: 2016-07-28 12:17:02-0400

=== Xamarin.Android ===

Version: 6.1.2.21 (Xamarin Studio Community)
Android SDK: /Users/alex/Library/Android/sdk
Supported Android versions:
5.0 (API level 21)
5.1 (API level 22)
6.0 (API level 23)

SDK Tools Version: 25.1.7
SDK Platform Tools Version: 24.0.2
SDK Build Tools Version: 23.0.3

Java SDK: /usr
java version "1.7.0_79"
Java(TM) SE Runtime Environment (build 1.7.0_79-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode)

Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL

=== Xamarin Android Player ===

Not Installed

=== Build Information ===

Release ID: 600020073
Git revision: a6f7a24a9723a2d4f5d33c176615b0d44703ab5b
Build date: 2016-07-26 13:36:15-04
Xamarin addins: f5acb37866a0141bc5ddbe95118f18dae4014568
Build lane: monodevelop-lion-cycle7-sr1

=== Operating System ===

Mac OS X 10.11.6
Darwin Alexs-MacBook-Pro.local 15.6.0 Darwin Kernel Version 15.6.0
    Thu Jun 23 18:25:34 PDT 2016
    root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64

=== Enabled user installed addins ===

Redth's Addins 1.0.2

Lance | Senior Manager Technical Support
Telerik team
 answered on 05 Oct 2016
8 answers
154 views

Hello guys,

I am facing a confusing error with the SideDrawer control in my Xamarin Forms application. I am using the current nuget version of the control.
In my application I am setting the Content of the sidedrawer in C# like this:

Class 1:

     InitializeComponent();
     Drawer.DrawerContent = App.ConnectService.SideDrawer ;


This works great, but I am running into a problem when I navigate to another Page.
The problem appears when I popback to Class 1 without opening the SideDrawer on the Pushed Page. In this case the Sidedrawer stays white.
In the debugger, I can see that the drawer content is still set. So setting Drawer.DrawerContent = App.ConnectService.SideDrawer; again doesn’t change anything

When I open the SideDrawer on the pushed Page once, I don’t run into this strange effect.

Best regards

Julian

Ves
Telerik team
 answered on 04 Oct 2016
4 answers
157 views

I have a RadListView with different types of items (grouped, actually) and I would like to format the items using a different datatemplate for each grouped type (e.g. products within Category "Food" will use template A and products within category "Dry Goods" will use a different template.

 With WPF apps and ListViews I would use for the "ItemTemplate" I would specify a DataTemplateSelector and then have some code that would point to specific resources / data templates based on my logic.

 My question is whether I can use DataTemplateSelectors for the RadListView in Xamarin.Forms -- if not, could you add a request to implement this feature?

 Thanks -

Erik

Lance | Senior Manager Technical Support
Telerik team
 answered on 29 Sep 2016
1 answer
195 views

Hello, I have problems trying to apply different templates to my RadListView on Xamarin Forms.

If I declare my templates as resources on my xaml, i.e.:

<ResourceDictionary>
      <DataTemplate x:Key="templatePortrait" x:Name="templatePortrait">
        <telerikListView:ListViewTemplateCell>
          <telerikListView:ListViewTemplateCell.View>
          <Grid VerticalOptions="FillAndExpand" BackgroundColor="{StaticResource LightGrayBackgroundColor}">
            <Grid.RowDefinitions>
              <RowDefinition Height="50*" />
              <RowDefinition Height="30*" />
              <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="60*"/>
              <ColumnDefinition Width="40*"/>
            </Grid.ColumnDefinitions>

    </Grid>
        </telerikListView:ListViewTemplateCell.View>
        </telerikListView:ListViewTemplateCell>
      </DataTemplate>

 

 <DataTemplate x:Key="templateLandscape" x:Name="templatePortrait">
        <telerikListView:ListViewTemplateCell>
          <telerikListView:ListViewTemplateCell.View>
          <Grid VerticalOptions="FillAndExpand" BackgroundColor="{StaticResource LightGrayBackgroundColor}">
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="50*"/>
              <ColumnDefinition Width="50*"/>
            </Grid.ColumnDefinitions>
    </Grid>
        </telerikListView:ListViewTemplateCell.View>
        </telerikListView:ListViewTemplateCell>
      </DataTemplate>

</ResourceDictionary>

 

and then I change the item template of my listview when I rotate the device, simply in this way:

listView.ItemTemplate = templateLandscape;

or

listView.ItemTemplate = templatePortrait;

 

it doesn't work, seems that the new template is not applied.

 

Instead if I assign the itemtemplate in this way:

listView.ItemTemplate = new DataTemplate(typeof(Templates.TelerikLandscape));

 

all works as expected. Why?

Where is my mistake?

Thank you

Lance | Senior Manager Technical Support
Telerik team
 answered on 29 Sep 2016
1 answer
75 views

Hello,

I'm having problems with the publication of an App on 'Apple Store; Apple has refused to publish the App because it found references to non-public APIs, specifically: "setMaximumLength :, MaximumLength". Unfortunately, analyzing the source code, I was not able to find the calls to these Apis. I would like to know if your library uses these Apis.

--- APPLE MESSAGE ---

2. 5 PERFORMANCE: SOFTWARE REQUIREMENTS
Performance - 2.5.1
Your app uses or references the following non-public APIs:
setMaximumLength:, maximumLength
The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.

--- END OF THE MESSAGE ---

Telerik UI for Xamarin v. 2016.3.914.3
XCode v. 8.0
Xamarin.Forms v. 2.3.2.127
Xamarin for Visual Studio v. 4.2
Xamarin.iOS v. 10

Thanks
Sophi
Telerik team
 answered on 29 Sep 2016
1 answer
67 views

Hi,

We currently have the following 2 lines of code in our calendar renderer for iOS in the OnElementChanged method in order to arrange the week layout correct in our forms app:

Control.Calendar = Foundation.NSLocale.CurrentLocale.Calendar;
Control.Locale = Foundation.NSLocale.CurrentLocale;

In our application currently on the store this works perfectly. However with the latest version after a series of actions the calendar seems to get into an state where the selected date visually shifts in the ui without publishing the selected date changed event and thereafter all dates get reported at the forms level including the locales time offset (previously utc).

I can try and put together a sample application if required but it seems to occur if the appointments source gets reassigned - but not every time.

Is this a known issue?

Lewis
Top achievements
Rank 1
 answered on 28 Sep 2016
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?