Telerik Forums
UI for Xamarin Forum
1 answer
135 views

I am trying to work with xamarin forms and teleric. I have come to an issue where I need both tool tip and selection behaviour on chart on the same tapping.

It seems like only tooltip works and selection does not work when used together.

           private ChartSelectionBehavior beh;
           private ChartTooltipBehavior beh1;

           beh = new Telerik.XamarinForms.Chart.ChartSelectionBehavior 
            {
                                DataPointSelectionMode = Telerik.XamarinForms.Chart.ChartSelectionMode.Single,
                                SeriesSelectionMode = ChartSelectionMode.Single
            };
            beh1 = new Telerik.XamarinForms.Chart.ChartTooltipBehavior
           {
                        TriggerMode = Telerik.XamarinForms.Chart.ToolTipTriggerMode.Tap
           };

           chart.Behaviors.Add(beh1);
           chart.Behaviors.Add(beh);

Is there any way i am doing it wrong.

 

 

Ves
Telerik team
 answered on 18 Jun 2015
8 answers
157 views

Hi, 

I was very pleased to see the new ListView control for xamarin from you today. We have been a Telerik customer for over 4 years now & xamarin controls from Telerik is the last thing I would ever ask for. 

I just need to understand this. As of today, in the current version (April 23rd release) What controls are available to be used cross platform in Xamarin Forms? 

 

Thanks 
ST

Nikolay
Telerik team
 answered on 17 Jun 2015
3 answers
176 views

I am using the RadCalendar control in my project and it gets rendered correctly on both the Android and iPhone.  However, on Android, tapping the calendar causes the app to become unresponsive.  For testing, I put a blank (no appointments) calendar on a page with no code-behind affecting the calendar and it still causes the issue.  The debugger loops the same three messages infinitely:

 06-11 15:14:38.339 I/art
(19335): Explicit concurrent mark sweep GC freed 22727(786KB) AllocSpace
objects, 0(0B) LOS objects, 33% free, 31MB/47MB, paused 346us total 20.711ms

06-11 15:14:38.369 D/Mono (19335): GC_OLD_BRIDGE
num-objects 3675 num_hash_entries 4972 sccs size 4388 init 0.00ms df1 10.76ms
sort 1.03ms dfs2 2.59ms setup-cb 3.27ms free-data 6.87ms links 2303/2303/1420/2
dfs passes 10950/6691

06-11 15:14:38.369 D/Mono (19335): GC_MINOR:
(Nursery full) pause 46.29ms, total 46.45ms, bridge 75.97ms promoted 384K major
1776K los 195K

 

I went back through the installation process to check if I messed something up there but couldn't find anything.  I'm currently using the free trial version if that makes any difference and have syncfusion installed as well (if that's known to cause conflicts).

Scott
Top achievements
Rank 1
 answered on 15 Jun 2015
2 answers
222 views

Hi,

I am using charting for Xamarin Forms.

I'd like to show data for each day in a lineseries with DateTimeContiniousAxis.

I had to use MajorStepUnit=TimeInterval.Hour to make it work Should not I have been using TimeInterval.Day? I got a confusion here and documentation is not much helpful.

 2nd; I wanted to use LaborFormat="dddd" to show day of week but it does not respect that.

 

Thank you for any help and clarifications.

Ves
Telerik team
 answered on 11 Jun 2015
3 answers
119 views

The SideDrawer documentation mentions a SideDrawerToggle class that can bind a drawer to a Toolbar.

Unfortunately i cannot find the class in any dll. Am i missing something or is this feature simply not enabled in the Xamarin.Android Components?

 

Nikolay
Telerik team
 answered on 08 Jun 2015
1 answer
123 views

Hi,

I am trying to build a Custom Renderer for the calendar control using http://docs.telerik.com/devtools/xamarin/controls/calendar/how-to/calendar-how-to-create-custom-renderer as a guide. Here is what I have:

 1. Custom calendar class:

public class CustomCalendar : RadCalendar {
}

2. Custom calendar renderer class:

[assembly: ExportRenderer(typeof(CustomCalendar), typeof(CustomCalendarRenderer))]
namespace Proj1.Droid {
    public class CustomCalendarRenderer:  CalendarRenderer {
    protected override void OnElementChanged(ElementChangedEventArgs<RadCalendar> e) {
         base.OnElementChanged(e);
         this.Control.Adapter.SelectedCellTextColor = Android.Graphics.Color.Red;
         if (this.Control.EventAdapter.Events.Count > 0)

            this.Control.EventAdapter.Events[0].EventColor = Android.Graphics.Color.Yellow;

         }
   }
}

 

I have a break point on  base.OnElementChanged(e); and it causes an exception: java.lang.reflect.InvocationTargetException.

Any ideas? Do you have a working example?

Thanks.

Ves
Telerik team
 answered on 08 Jun 2015
1 answer
243 views

Hi,

​

 (sorry for my poor english )

I want to show information about the selected data inside the tooltip (ChartTooltipBehavior).

My data can contain for exemple : date, value, specificInfo. The basic tooltip show the date and the value but i also want to show the third information.

Can i show any view that i want ?

 

This exemple from UI.Android seems not far but the compiler don't want to cast targets[0] to CategoricalDataPoint.. (is it even possible ?).
Can you help me ?
Can you bring me some exemple to retrieve the data and use it inside a custom view ?

 

Thanks !

Pavel R. Pavlov
Telerik team
 answered on 02 Jun 2015
1 answer
86 views

Is it possible to insert the Calendar inside a StackLayout?

I need to add an ActivityIndicator to indicate the load of the appointments...

Thank you in advance

Mauro

Pavel R. Pavlov
Telerik team
 answered on 01 Jun 2015
1 answer
105 views

Hi,

 I'm trying out a new POC for Android and using the Calendar widget.  It looks very promising, but I can't even get the SelectionMode single working.  Here is my code, from looking at the documentation it should be working.

 

<com.telerik.widget.calendar.RadCalendarView
           android:id="@+id/calendarView"
           android:layout_width="match_parent"
           android:layout_height="match_parent"
           calendar:selectionMode="Single" />

I've also tried setting it in the Activity:

RadCalendarView calendar = FindViewById<RadCalendarView> (Resource.Id.calendarView);
            calendar.SelectionMode = CalendarSelectionMode.Single;

 As you can see from the image below, it is still selecting multiple dates...

 

Here is what my calendar looks like:

Antony Jekov
Telerik team
 answered on 21 May 2015
9 answers
401 views

Hi,

 I'll preface this by saying i'm completely new to C#, MVVM, and Xamarin, so I apologize if this is an easy question.  I'm trying to implement the Telerik Calendar widget and have it bound to a DateTime object in my ViewModel.  I want user changes of clicking on a new date to trigger the change in the view model.  

 

So i put break statements into the OnPropertyChanged function as well as the setter of SelectedDate.  I see am hitting those points only on the first run of my app, to the date that i declared in my ViewModel constructor.  I am expecting to get into the set method and the OnPropertyChanged everytime the user clicks on a new date on the calendar?  But that isn't happening so i'm clearly missing something.

 

Thank you

 

XAML 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="Mobile_Release_POC_4.MonthViewPage" 
xmlns:local="clr-namespace:Mobile_Release_POC_4;assembly=Mobile_Release_POC_4"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:sys="clr-namespace:System;assembly=mscorlib">

<ContentPage.Resources>
    <ResourceDictionary>
        <local:OverallHealthToColorConverter x:Key="OverallHealthToColorConverter" />
    </ResourceDictionary>
  </ContentPage.Resources>


<Grid>
                <Grid.RowDefinitions>
                    <RowDefinition />
                    <RowDefinition />
                </Grid.RowDefinitions>

               <telerikInput:RadCalendar 
                Grid.Row="0"
        x:Name="calendarTest"
        SelectedDate="{Binding SelectedDate, Mode=TwoWay}"
               ></telerikInput:RadCalendar>

 

 

This is a piece of code from my code behind the Xaml setting up the BindingContext

 public MonthViewPage ()
{
InitializeComponent();
this.BindingContext = new MonthViewViewModel();
}

 

Last here is my modalView

 

public class MonthViewViewModel : INotifyPropertyChanged
{

    public DateTime selectedDate{ get; set; }

    public event PropertyChangedEventHandler PropertyChanged;

    public MonthViewViewModel ()
    {
          SelectedDate = new DateTime (2015, 4, 15);
    }

     public DateTime SelectedDate
     {
             protected set
     {
     if (!selectedDate.Equals(value))
     {
            selectedDate = value;
            OnPropertyChanged("SelectedDate");
     }
}
    get { return selectedDate; }
}

    protected void OnPropertyChanged(string propertyName)
   {
         if (PropertyChanged != null)
                 PropertyChanged(this,
                    new PropertyChangedEventArgs(propertyName));
    }

}

Rosy Topchiyska
Telerik team
 answered on 19 May 2015
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?