Telerik Forums
UI for Xamarin Forum
3 answers
95 views

Greetings,

I would like to know if it is possible to have a LIST<T> property as a member of the DataForm Entity.

Thank you for your time,

vagg

Todor
Telerik team
 answered on 15 Apr 2016
3 answers
143 views

i am using xamarin and i am going to create a chart, the third party component that i using for the chart is the telerik. The chart is the pie chart. I am following the document of the telerik which is

http://docs.telerik.com/devtools/xamarin/controls/chart/how-to/chart-how-to-create-custom-palette

In the end, the android work well. However when i debug in the simulator, the chart only show me one color which is the first colour of my palette. Is the telerik not support the custom palette for IOS?

The following is my code

var series = new PieSeries();

series.ValueBinding = new Telerik.XamarinForms.Chart.PropertyNameDataPointBinding{PropertyName = "Value"};

series.ItemsSource = data1;

series.ShowLabels = true;

series.ValueBinding = new PropertyNameDataPointBinding("Value");

chart.Series.Add(series);

chart.HeightRequest = 400;

chart.Palette = CustomPalettes.CustomWhite;

chartlayout.Children.Add(chart);

 

Palette code:

class CustomPalettes{

static CustomPalettes(){

CreateCustomWhitePalette();

}

 

public static ChartPalette CustomWhite { get; private set; }

 

private static void CreateCustomWhitePalette(){

ChartPalette palette = new ChartPalette();

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 35, 255), StrokeColor = Color.FromRgb(255, 255, 255) });

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(0, 255, 255), StrokeColor = Color.FromRgb(255, 255, 255) });

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(116, 255, 0), StrokeColor = Color.FromRgb(255, 255, 255) });

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 156, 0), StrokeColor = Color.FromRgb(255, 255, 255) });

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 0, 255), StrokeColor = Color.FromRgb(255, 255, 255) });

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 0, 153), StrokeColor = Color.FromRgb(255, 255, 255) });

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(0, 173, 204), StrokeColor = Color.FromRgb(255, 255, 255) });

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 51, 51), StrokeColor = Color.FromRgb(255, 255, 255) });

palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 255, 51), StrokeColor = Color.FromRgb(255, 255, 255) });

CustomWhite = palette;}}

Pavel R. Pavlov
Telerik team
 answered on 15 Apr 2016
1 answer
108 views

Has anyone been able to use Xamarin Forms Player https://github.com/MobileEssentials/FormsPlayer with Telerik Controls.  This tool, at least when using Android, reduces the 'shoot yourself in the face' factor down considerably when tweaking up the design for Xamarin Forms.  

 

I have a folder for DummyView.xaml with a corresponding DummyView.json that I use to try out different design things.  Instead of waiting for a rebuild, deploy, then view cycle, as soon as I hit save, I see the updated layout instantly.  However, with the Telerik ListView at least, I just get a bunch of exceptions and can't see the layout.

Rosy Topchiyska
Telerik team
 answered on 12 Apr 2016
1 answer
114 views

 

  Hi everyone,

 

I'd like to rotate the Y and X axis labels. I only found that property for the title label 

TKChartNumericAxis powerAxis = new TKChartNumericAxis ();
powerAxis.Style.TitleStyle.RotationAngle

But this is only for the title. I need to rotate all the value labels on the axis.

Is that posible? 

Thanks!

 

 
Adrian
Telerik team
 answered on 12 Apr 2016
3 answers
119 views
I am not unable to display value at the end of every bar in bar chart. Can any one help regarding this.
Pavel R. Pavlov
Telerik team
 answered on 12 Apr 2016
10 answers
174 views

An exception that says "security failed" occured.Can you please suggest me any solution.

Thanks & Regards,

Lakshmi Priya

Pavel R. Pavlov
Telerik team
 answered on 11 Apr 2016
3 answers
259 views

I have added the RadListview to my Xamarin.Forms project in a Xaml page and bound some items to it.

 When I scroll the list there is no visible scrollbar indicator. Is there some property to enable the display of the indicator on the listview?

Ves
Telerik team
 answered on 08 Apr 2016
1 answer
114 views
i am using xamarin and i am going to create a chart, the third party component that i using for the chart is the telerik. The chart is the pie chart. I am following the document of the telerik which is

http://docs.telerik.com/devtools/xamarin/controls/chart/how-to/chart-how-to-create-custom-palette

In the end, the android work well. However when i debug in the simulator, the chart only show me one color which is the first colour of my palette. Is the telerik not support the custom palette for IOS?
The following is my code

var series = new PieSeries();
series.ValueBinding = new Telerik.XamarinForms.Chart.PropertyNameDataPointBinding{PropertyName = "Value"};
series.ItemsSource = data1;
series.ShowLabels = true;
series.ValueBinding = new PropertyNameDataPointBinding("Value");
chart.Series.Add(series);
chart.HeightRequest = 400;
chart.Palette = CustomPalettes.CustomWhite;
chartlayout.Children.Add(chart);


Palette code:

class CustomPalettes{
static CustomPalettes(){
CreateCustomWhitePalette();
}

public static ChartPalette CustomWhite { get; private set; }

private static void CreateCustomWhitePalette(){
ChartPalette palette = new ChartPalette();
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 35, 255), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(0, 255, 255), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(116, 255, 0), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 156, 0), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 0, 255), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 0, 153), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(0, 173, 204), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 51, 51), StrokeColor = Color.FromRgb(255, 255, 255) });
palette.Entries.Add(new PaletteEntry() { FillColor = Color.FromRgb(255, 255, 51), StrokeColor = Color.FromRgb(255, 255, 255) });
CustomWhite = palette;}}

Pavel R. Pavlov
Telerik team
 answered on 08 Apr 2016
2 answers
146 views
I have a list of items with 3 properties.  Is it possible for the ListView to look similar to a gridview so the data can easily be viewed like a datagrid?  For example, top row is frozen, the remaining rows scroll, and it is easy to see which property belongs in which column for eadch ListView item.
Rosy Topchiyska
Telerik team
 answered on 07 Apr 2016
1 answer
310 views

I am using a common ViewModel/Model/Services library that is shared between a WPF project and Xamarin Forms project.  

When I retrieve a fresh list of a large number of items, I clear the items (derives from ObservableCollection) on the UI thread, then add a bunch of items to the collection NOT on the UI Thread, then call the following on the UI Thread:

OnPropertyChanged(new PropertyChangedEventArgs("Count"));
OnPropertyChanged(new PropertyChangedEventArgs("Item[]"));
OnCollectionChanged(new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));

For WPF and non_telerik ListView, this works great and I don't have to jam up the UI Thread with every single Add to the collection.  For the RadListView, this doesn't work and I end up with an empty list (from a view perspective).  Now, if I just call Add for every single item on the UI thread, the RadListView updates, but it jams up the UI thread and has a bad UX (you can see each item added being added visually).

In the code behind, I even listened for any NotifyCollectionChangedAction.Reset events, and then remove and set the ItemsSource binding, and that doesn't work either.

Any tips on getting this working without having to call Add on the UI thread for every item?  This is literally the only thing in the way from me 'shouting on the rooftops' why everyone should use Telerik Xamarin Forms controls.

Tsvyatko
Telerik team
 answered on 07 Apr 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?