Telerik Forums
UI for Xamarin Forum
13 answers
121 views

I think this issue must have come about in a recent version, since it was not a problem in the past, but the time labels on my chart in Android are labeled as 11 hours earlier thanthe actual values. Here is some sample code, and I've attached a screenshot. The current time was 2:47pm, but the chart shows 3:46am. This problem only happens on Android. iOS is fine. Any ideas?

    <chart:RadCartesianChart>

        <chart:RadCartesianChart.HorizontalAxis>
            <chart:DateTimeContinuousAxis MajorStep="30" MajorStepUnit="Second" LabelFormat="T" />
        </chart:RadCartesianChart.HorizontalAxis>
        <chart:RadCartesianChart.VerticalAxis>
            <chart:NumericalAxis/>
        </chart:RadCartesianChart.VerticalAxis>
        <chart:RadCartesianChart.Series>
            <chart:SplineSeries ItemsSource="{Binding DateTimeValues}">
                <chart:SplineSeries.CategoryBinding>
                    <chart:PropertyNameDataPointBinding PropertyName="DateTime"/>
                </chart:SplineSeries.CategoryBinding>
                <chart:SplineSeries.ValueBinding>
                    <chart:PropertyNameDataPointBinding PropertyName="Value"/>
                </chart:SplineSeries.ValueBinding>
            </chart:SplineSeries>
        </chart:RadCartesianChart.Series>
    </chart:RadCartesianChart>

    public partial class MainPage
    {
        public MainPage()
        {
            InitializeComponent();
            BindingContext = new ViewModel();
        }
        public class DateTimeValue
        {
            public DateTime DateTime { get; set; }
            public double Value { get; set; }
        }

        public class ViewModel
        {
            public List<DateTimeValue> DateTimeValues { get; set; }

            public ViewModel()
            {
                DateTimeValues = new List<DateTimeValue>
                {
                    new DateTimeValue { DateTime = DateTime.Now.AddSeconds( -30 * 1 ), Value = 1 },
                    new DateTimeValue { DateTime = DateTime.Now.AddSeconds( -30 * 2 ), Value = 3 },
                    new DateTimeValue { DateTime = DateTime.Now.AddSeconds( -30 * 3 ), Value = 2 },
                    new DateTimeValue { DateTime = DateTime.Now.AddSeconds( -30 * 4 ), Value = 5 }
                };
            }
        }
    }

Stephen
Top achievements
Rank 1
 answered on 21 Sep 2017
5 answers
235 views

I has add telerik packages to my project

In XAML;

 

<?xml version="1.0" encoding="utf-8"?>
<ContentPage 
    xmlns="http://xamarin.com/schemas/2014/forms" 
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
    xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
    xmlns:local="clr-namespace:TExtA" x:Class="TExtA.TExtAPage">

    <ContentPage.Content>
        <StackLayout BackgroundColor="Aqua">
            <telerikInput:RadAutoComplete HeightRequest="40" SuggestMode="Suggest" IsVisible="true" IsEnabled="true" SuggestionViewHeight="100" ShowSuggestionView="true" BackgroundColor="Black" x:Name="autoComplete" Watermark="Search here..." />
        </StackLayout>
    
    </ContentPage.Content>
    
</ContentPage>

In CS:

this.autoComplete.ItemsSource = new List<string>()
            {
                "Freda Curtis",
                "Jeffery Francis",
                "Eva Lawson",
                "Emmett Santos",
                "Theresa Bryan",
                "Jenny Fuller",
                "Terrell Norris",
                "Eric Wheeler",
                "Julius Clayton",
                "Alfredo Thornton",
                "Roberto Romero",
                "Orlando Mathis",
                "Eduardo Thomas",
                "Harry Douglas",
                "Parker Blanton",
                "Leanne Motton",
                "Shanti Osborn",
                "Merry Lasker",
                "Jess Doyon",
                "Kizzie Arjona",
                "Augusta Hentz",
                "Tasha Trial",
                "Fredda Boger",
                "Megan Mowery",
                "Hong Telesco",
                "Inez Landi",
                "Taina Cordray",
                "Shantel Jarrell",
                "Soo Heidt",
                "Rayford Mahon",
                "Jenny Omarah",
                "Denita Dalke",
                "Nida Carty",
                "Sharolyn Lambson",
                "Niki Samaniego",
                "Rudy Jankowski",
                "Matha Whobrey",
                "Jessi Knouse",
                "Vena Rieser",
                "Roosevelt Boyce",
                "Kristan Swiney",
                "Lauretta Pozo",
                "Jarvis Victorine",
                "Dane Gabor"
            };

 

Build and run no error, but on simulator not show anything, can touch, focus, type entrytext, not show watermark

XAmarin Forms 2.3.4.247

Telerik UI .2017.1.10118.233

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 21 Sep 2017
1 answer
228 views

In application I have MasterDetailPage and Detail page is set to NavigationPage. Several pages under NavigationPage have ListView control with swiping enabled. Swiping works fine with Android. In iOS, however, when I swipe ListView item to the right it swipes the item AND also slides out the Master Detail menu.

I would rather not set 

IsGestureEnabled = false;

 

on MasterDetailPage, because if I am not at the root page in Navigation stack, then there is no way to bring up Master Detail menu (except for navigating back, of course).

Could you propose any solution for this? Thanks.

Lance | Senior Manager Technical Support
Telerik team
 answered on 21 Sep 2017
4 answers
144 views

Hello,

 

When reorder is enabled via IsItemsReorderEnabled ListView calls CollectionChanged event for underlying ObservableCollection.

But in some cases it reports wrong new index and though visually item order is as expected underlying ObservableCollection gets wrong order.

 

To reproduce the issue bind just 2 strings to the ListView, say Item1 and Item2.

Drag first string (Item1) under second (Item2), ListView will look like this:

Item2

Item1

 

But ObservableCollection still has this:

Item1 (wrong!)

Item2 (wrong!)

If you subscribe to CollectionChanged event you will see that reported new item index is wrong, it should be 1 but in fact it is 0, as if the item was moved from 0 to 0.

 

Now start over, then drag second item (Item2) on top of first item (Item1), ListView will look like this:

Item2

Item1

 

And ObservableCollection properly updated to:

Item2 (correct)

Item1 (correct)

 

It looks like when an item is moved down its index is less by 1 than it should be.

Please check.

 

Yours faithfully

Vitaly Knyazev

Pavel R. Pavlov
Telerik team
 answered on 20 Sep 2017
1 answer
84 views

Hi,

I am trying to have two pickereditors on two different model properties on the same dataform but i cant seem to get both data sources to work. Do i need a separate PropertyDataSourceProvider for each sata source?

Douglas
Top achievements
Rank 1
 answered on 19 Sep 2017
1 answer
98 views

I am trying to create a screen with 2 tabs, each of the tabs contains a dataform. However, both tabs are bound to the same underlying screen.

 

Using DataAnnotations, how can this be achieved, as each of the dataforms paints the full screen, not the fields I want on each screen.

Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Sep 2017
2 answers
737 views
I am using RadListView and trying to bind the ItemTapped to my MVVM.
I can't seem to get this to work.  I can't find any examples online either.  

Thanks in advance.
Will

Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Sep 2017
3 answers
225 views

Hi,

I am evaluating xamarin UI. Using calendar example provided I came across that week view shows a week on top of the calendar and the rest is jst blank. How can we show a grid or list with the appointments for the week in this area. 

Thank you in advance

Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Sep 2017
4 answers
92 views
hi,

I use Xamarin IOs and telerik to make a ("Chart Series: Line"), I'm trying to display some labels with a certain TextColor and other labels with another TextColor.

I tried Chart.YAxis.Style.LabelStyle.TextColor, but that changes the color for all labels. 

I tried AttributedTextForAxis, but this seems that only returns a string, and y need the textColor of the AttributedText. 

I need help to solve this.

Thanks!
Stefan Nenchev
Telerik team
 answered on 17 Sep 2017
14 answers
333 views
When I set HeaderPosition="Bottom", the indicator bar the denotes the selected tab still shows up at the bottom of the selected tab. Is there a way to move that to the top of the tab in this case?
Lance | Senior Manager Technical Support
Telerik team
 answered on 15 Sep 2017
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?