Telerik Forums
UI for Xamarin Forum
4 answers
52 views

Hello,

I am using Xamarin Forms to make an Windows Phone app. In it I have the Calendar control on one of the pages. The calendar on Windows Phone is on black background. However, In my app I have white background and if the background is white, the top row, which shows the month and the year, is not visible (since it is also white). I have looked through the docs and in the Calendar renderer for Windows Phone, but I could not manage to find a property which can change the aforementioned row's color. Is there some way to achieve this effect?

Thanks in advance.

Regards

Pavel R. Pavlov
Telerik team
 answered on 29 Dec 2015
1 answer
98 views

Team,

We are doing and evaluation of List view control for one of our requirements. We want to implement horizontal and vertical list views in iOS and Android using Xamarin forms Telerik control.

 1)

Is there  any documentation or sample solution explaining all properties of List view. For e.g for orientation setting we had to guess the property name. Only available documentation from net is http://docs.telerik.com/devtools/xamarin/controls/listview/listview-overview and is not exhaustive

2)

Also we have a requirement to expand and collapse the list item, where we have found an issue in iOS list view where collapse doesnt happen unless we make a UI operation(scroll a little in our case). Have you come across the issue?

Tsvyatko
Telerik team
 answered on 29 Dec 2015
0 answers
51 views

Hi Team,

    

Bala
Top achievements
Rank 1
 asked on 28 Dec 2015
1 answer
102 views
I'm trying to follow the examples for the iOS Xamarin TKDataForms. How do you get the value providers, say for the EncryptionLevel property in the DataFormGettingStarted example, to push to another view? I'm trying to add this to an app and mine isn't pushing to the new a view like the example is. Is there other code that is required for the push of the new view controller or is it done when I assign the value in the value provider?  
Adrian
Telerik team
 answered on 28 Dec 2015
3 answers
268 views

Hi, the following test charting does not show Date/Category axis on android as it is showing well on WP (See attached files); can anybody tell me why?

01.using System;
02.using System.Collections.Generic;
03.using System.Linq;
04.using System.Text;
05.using System.Threading.Tasks;
06.using Telerik.XamarinForms.Chart;
07.using TelerikTests.ViewModel;
08.using Xamarin.Forms;
09. 
10.namespace TelerikTests.View
11.{
12.    public class ChartViewModel
13.    {
14.        private static Random random = new Random();
15. 
16. 
17.        public ChartViewModel()
18.        {
19.            this.Data = GetDateTimeData(10);
20.        }
21. 
22.        public List<TemporalData> Data { get; set; }
23. 
24.        public string Title { get; set; }
25.        public static List<TemporalData> GetDateTimeData(int itemsCount)
26.        {
27.            var startDate = DateTime.Now.AddYears(-1);
28. 
29.            var items = new List<TemporalData>();
30.            for (int i = 0; i < itemsCount; i++)
31.            {
32.                var data = new TemporalData();
33.                data.Category = startDate.AddDays(i);
34.                data.Value = random.Next(10, 30);
35. 
36.                items.Add(data);
37.            }
38. 
39.            return items;
40.        }
41.    }
42.    public class ChartPage :
43.        ContentPage
44.    {
45.        public ChartPage()
46.        {
47.            this.BindingContext = new ChartViewModel() { Title="test"};
48.            this.BackgroundColor = Device.OnPlatform
49.                (
50.                    Color.White, Color.White, Color.Transparent
51.                );
52.            var chart=CreateChart();
53.            chart.HeightRequest = 300;
54.            this.Content = chart;
55.        }
56. 
57.        private static RadCartesianChart CreateChart()
58.        {
59.            var chart = new RadCartesianChart
60.            {
61.                HorizontalAxis = new Telerik.XamarinForms.Chart.DateTimeContinuousAxis() {
62.                    GapLength = 0.5,
63.                    MajorStep=1,
64.                    MajorStepUnit = TimeInterval.Day,
65.                    LabelFitMode = AxisLabelFitMode.Rotate,
66.                    ShowLabels = true
67.                    //PlotMode = AxisPlotMode.BetweenTicks
68.                },
69.                VerticalAxis = new Telerik.XamarinForms.Chart.NumericalAxis(),
70.            };
71.             
72.            var series = CreateSeries();
73.            series.DisplayName = "TEst";
74. 
75.            chart.Series.Add(series);
76.            return chart;
77.        }
78. 
79.        private static AreaSeries CreateSeries()
80.        {
81.            var series = new Telerik.XamarinForms.Chart.AreaSeries();
82.            series.SetBinding(CategoricalSeries.ItemsSourceProperty, new Binding("Data"));
83. 
84.            series.ValueBinding = new Telerik.XamarinForms.Chart.PropertyNameDataPointBinding
85.            {
86.                PropertyName = "Value"
87.            };
88. 
89.            series.CategoryBinding = new Telerik.XamarinForms.Chart.PropertyNameDataPointBinding
90.            {
91.                PropertyName = "Category"
92.            };
93. 
94.            return series;
95.        }
96.    }
97.}

Pavel R. Pavlov
Telerik team
 answered on 28 Dec 2015
1 answer
320 views

Hi!

 I've been trying to install Telerik with my Win10/VS2015 comdo for Xamarin / Android development but nothing appears in VS after Telerik control panel says it's done with the installation.

 

For test purposes i tried to install Windows phone extensions, and that did add telerik menu into my VS. But no android / xamarin extensions.

 I tried following this guide:

http://docs.telerik.com/devtools/xamarin/controls/listview/listview-getting-started

 

But VS was not able to provide me with any references to Telerik.

 

Is this something that could be solved by using NuGet packages or how are Telerik extensions planned to be used in Win10 era?

Ves
Telerik team
 answered on 22 Dec 2015
1 answer
188 views

Hi,

I saw the loading on demand currently not available on forms.

is it possible to use custom renderer in order to solve this? if so, how?

is this going to be supported in the next release?

 

Thank you

Pavel R. Pavlov
Telerik team
 answered on 21 Dec 2015
3 answers
149 views

 Hello,

I am using the Calendar widget to write an Android app using Xamarin.Forms. I have a page which content is only a RadCalendar. The page crashes sometimes and I still can't investigate the specific situation. So far, I found out that the page crashes when I have some Appointments for the current month (which is also the month which the Calendar starts showing initially). The stack trace is as follows:

12-14 11:18:14.908 E/AndroidRuntime( 4971): FATAL EXCEPTION: main
12-14 11:18:14.908 E/AndroidRuntime( 4971): java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference
12-14 11:18:14.908 E/AndroidRuntime( 4971): at com.telerik.widget.calendar.events.EventRenderer.drawEventsInModeShapeAndText(EventRenderer.java:207)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at com.telerik.widget.calendar.events.EventRenderer.renderEvents(EventRenderer.java:56)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at com.telerik.widget.calendar.CalendarDayCell.drawEvents(CalendarDayCell.java:397)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at com.telerik.widget.calendar.CalendarDayCell.render(CalendarDayCell.java:284)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at com.telerik.widget.calendar.CalendarRow.render(CalendarRow.java:103)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at com.telerik.widget.calendar.CalendarFragment.drawRows(CalendarFragment.java:518)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at com.telerik.widget.calendar.CalendarFragment.render(CalendarFragment.java:243)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at com.telerik.widget.calendar.CalendarScrollManager$FragmentHolder$LayerView.onDraw(CalendarScrollManager.java:134)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:15199)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14133)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.recreateChildDisplayList(ViewGroup.java:3394)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchGetDisplayList(ViewGroup.java:3373)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14093)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14128)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:15202)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14133)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14128)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14128)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14128)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:15202)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14133)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14128)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.support.v4.widget.DrawerLayout.drawChild(DrawerLayout.java:1229)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:15202)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14133)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.java:14156)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.draw(View.java:14923)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.drawChild(ViewGroup.java:3410)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3204)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.updateDisplayListIfDirty(View.java:14128)
12-14 11:18:14.908 E/AndroidRuntime( 4971): at android.view.View.getDisplayList(View.ja

I can't however reproduce the issue on the Sample app (SDK Browser).

If I found out more, I will post it below.

My info:
OS: Windows 10
IDE: Visual studio Premium 2013 version 12.0.40629.00 update 5
Xamarin SDK: 4.0.0.1717
Xamarin.Android: 6.0.0.35
Telerik for Xamarin version: 2015.3.1202.200

Rosy Topchiyska
Telerik team
 answered on 15 Dec 2015
3 answers
128 views
I am trying to bind a list view to a JSON datasource using listview.SetBinding but its not binding. Any samples will be really helpful.     
Rosy Topchiyska
Telerik team
 answered on 11 Dec 2015
0 answers
163 views
I have a webpage displayed inside a web view.. on the webpage the user is supposed to be selecting a date using a calendar control/datepicker. How can I get that selected data back to the app?
Muhammad
Top achievements
Rank 1
 asked on 09 Dec 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?