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?
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
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?
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
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.
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
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
>
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!