Telerik Forums
UI for Xamarin Forum
6 answers
126 views
The DateEditor is throwing an exception on Android trying to cast a java Calendar object to a DateTime object. I thought this would get handled automatically by the DataForm package? Is there some step I missed? I have reverted my code to use the Xamarin DatePicker in the meantime but wanted to see if can get a resolution for this as I would really like to take advantage of what the DataForm has to offer. I'm using version 2016.3.1202.5.
Edwin
Top achievements
Rank 1
 answered on 10 Feb 2017
3 answers
140 views
I am using the RADListView and a [Circle Image plug-in ](https://github.com/jamesmontemagno/ImageCirclePlugin "Circle Image plug-in ") from @JamesMontemagno  , with the most recent version 1.8.1. Works great in Android and UWP.

In iOS only, the first time I navigate from my home page to a ListView page it renders fine. When I hit back on the navigation breadcrumb to go back to my home page... I get a runtime error "System.NullReferenceException: Object reference not set to an instance of an object"

If I use a regular Image control it works fine.

Not sure if this is related to linker options, but here is what I have tried for linker options:

I have tried Link SDK Assemblies only and none. I have added the Additional mtouch argument: --linkskip=ImageCircle.Forms.Plugin.iOS --linkskip=ImageCircle.Forms.Plugin.Abstractions 

Any other ideas?

Note: I posted on the Xamarin forums too...

https://forums.xamarin.com/discussion/87828/imagecircle-causes-ios-null-reference-exception/p1?new=1
Rosy Topchiyska
Telerik team
 answered on 10 Feb 2017
5 answers
155 views

Hello,

 

i am trying to understand the virtualisation technique in RadListView.

I am having a List with 30 Elements. 4 Elements are displayed at once.

I have a timer, that updates each item every minute. This update is rather slow but calculation is fast.

For each view model of those elements i raise one property changed event.

 

I hooked into the ListViewRenderer

public class ListViewExRenderer : ListViewRenderer
{
    protected override NSObject CreateDataSource(RadListView radListView)
    {
        return new ListViewExDataSource(radListView);
    }
 
    class ListViewExDataSource : ListViewDataSource
    {
        public ListViewExDataSource(RadListView view)
            : base(view)
        {
        }
 
        protected override TelerikUI.TKListViewCell CreateCellForItem(TelerikUI.TKListView listView, NSIndexPath indexPath, NSObject obj)
        {
            return base.CreateCellForItem(listView, indexPath, obj);
        }
    }
}

 

I set a breakpoint in CreateCellForItem. This is hit 30 times at the beginning, for all elements in the list. Then, it is hit again 4 times for the first items to be displayed. This is rather odd. I thought it would hit 4 times, and when i started scrolling, it would hit again for items that appearing. Any thoughts?

Tsvyatko
Telerik team
 answered on 09 Feb 2017
3 answers
115 views

I created a bar chart with a horizontal categorical axis. Since my labels are long I used the LabelFitMode="Rotate" mode. According to the documentation labels are rotated around the top left corner. See http://docs.telerik.com/devtools/xamarin/controls/chart/axes/axes-overview#labels-style-and-position .

But it seems to me they are rotated around the center of the label which causes the impression that labels are aligned with the next bar. See the screenshot. The labels should be rotated around the upper right corner or this should be a property that can be set. Now labels are show under the wrong bar, they have an offset of one and the fist bar has no label. The end of the first label "Animals on farm" should be aligned under the first bar.

Any thought on this?

 

Regards,

Michel

Michel
Top achievements
Rank 1
 answered on 09 Feb 2017
2 answers
176 views

I have a RadListView which is autosizing rows according to their content. I have followed the example app to enable swiping to reveal a delete button. When I remove the row from the ObservableCollection, however, it causes the position of the list to jump after the delete. This behavior does not happen when all the rows are set to the same ItemLength.

How can I prevent the list from jumping?

Nikolay
Telerik team
 answered on 08 Feb 2017
1 answer
169 views

Hi,

 

I am not using Xamarin.Forms, I am going the more custom UI route. Is it possible to use all the Xamarin Components without using Xamarin.Forms? From the looks of it, it doesn't appear to be the case, but I figured I'd double check.

 

Thanks

Lance | Senior Manager Technical Support
Telerik team
 answered on 07 Feb 2017
1 answer
162 views

Hello,

We're trying to solve a critical issue with using the charts.
They look completely fine on the Mac Simulator (tried on 5s iOS 10.2 emulator).

And yet when running on the actual device, it looks different:
* borders looking bolder
* lines near the Y axis labels
* biggest issue - looks like the value columns are rendered in the wrong Z-order (making the data useless)

There is no difference in the code used to create the chart

I've attached pictures of both scenarios.

Thank you for your help.

Deyan
Telerik team
 answered on 07 Feb 2017
6 answers
364 views

Hi Support:

I have a RadListView inside the ContentPage and the scrolling was behaving fine.  But then I added an Activity Indicator that should be displayed above the listview to the page like this:

 

<StackLayout>

     <ActivityIndicator IsRunning="{Binding IsBusy}" IsVisible="{Binding IsBusy}"/>

    <telerikDataControls:RadListView x:Name="lv" ....>

     .........

    </telerikDataControls:RadListView>

</StackLayout>

And now the scrolling is not keeping the new scrolled position.  When you release the scroll, the listview returns to the prior position.  This is happening in Android and iPhone.

Do I need to add a ScrollView or I am missing something here.

Thanks in advanced.

David

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Pavel R. Pavlov
Telerik team
 answered on 07 Feb 2017
1 answer
102 views
I have two issues with the chart below. First is that the DateTimeContinuousAxis LabelFormat Binding does not work. I can set it in XAML like "dddd" and it works, but not with binding. It just defaults to year.

Secondly, I am trying to show one week's worth of data. I have 7 date values which displays great on the chart, but the horizontal ticks display: "Friday, Saturday, Saturday, Sunday, Monday, Monday, Tuesday, Wednesday, Thursday" I have the MajorStep bound to "0" and MajorStepUnit bound to "Day". So I have two extra ticks and they don't line up to the data points.

<telerikChart:RadCartesianChart x:Name="AcquisitionChart"
                                Style="{StaticResource AnalyticsSummaryChart}">
    <telerikChart:RadCartesianChart.Grid>
        <telerikChart:CartesianChartGrid MajorLinesVisibility="Y"
                                         MajorLineThickness="1"
                                         MajorLineColor="Gray"
                                         StripLinesVisibility="Y"/>
    </telerikChart:RadCartesianChart.Grid>
    <telerikChart:RadCartesianChart.HorizontalAxis>
        <telerikChart:DateTimeContinuousAxis  MajorTickThickness="1"
                                              PlotMode="BetweenTicks"
                                              ShowLabels="True"
                                              LabelFormat="{Binding AcquistionCharLabelFormat}"
                                              LabelFontSize="9"
                                              MajorStep="{Binding AcquistionChartMajorStep, Mode=OneWay}"
                                              MajorStepUnit="{Binding AcquistionChartMajorStepUnit, Mode=OneWay}"/>
    </telerikChart:RadCartesianChart.HorizontalAxis>
    <telerikChart:RadCartesianChart.VerticalAxis>
        <telerikChart:NumericalAxis LineColor="Transparent"
                                    MajorStep="{Binding AcquisitionSummary.DesiredTickCount, Mode=OneWay}"
                                    LabelFormat="N0"/>
    </telerikChart:RadCartesianChart.VerticalAxis>
    <telerikChart:RadCartesianChart.Series>
        <telerikChart:AreaSeries ItemsSource="{Binding AcquisitionSummary.Progression, Mode=OneWay}"
                                 Fill="{StaticResource AreaSeriesFill}"
                                 Stroke="{StaticResource AreaSeriesStrokeColor}"
                                 StrokeThickness="2">
            <telerikChart:AreaSeries.ValueBinding>
                <telerikChart:PropertyNameDataPointBinding PropertyName="Value"/>
            </telerikChart:AreaSeries.ValueBinding>
            <telerikChart:AreaSeries.CategoryBinding>
                <telerikChart:PropertyNameDataPointBinding PropertyName="UtcDate"/>
            </telerikChart:AreaSeries.CategoryBinding>
        </telerikChart:AreaSeries>
    </telerikChart:RadCartesianChart.Series>
</telerikChart:RadCartesianChart>
Rosy Topchiyska
Telerik team
 answered on 07 Feb 2017
6 answers
167 views

Hello,

 

i switched from default Xamarin.Froms ListView to the Telerik RadListView (currently only focusing on iOS). One thing that I can't figure out is how to add an animation when items are added to the list view. New items just appear without any animation.

 

Any ideas? Thanks!

Pavel R. Pavlov
Telerik team
 answered on 07 Feb 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?