Telerik Forums
UI for Xamarin Forum
1 answer
158 views

Hi,

In the Xamarin documentation, it is mentioned that UI for iOS and UI for Android suites have been discontinued and these are being used as a basis for the Xamarin.Android and Xamarin.iOS controls.

I would like to find out how would this impact current and future Xamarin controls (e.g. anymore new enhancements)? 

Also, would this have any impact on current and future Xamarin Forms controls?

Thanks.

 

Lance | Senior Manager Technical Support
Telerik team
 answered on 23 Jan 2018
3 answers
121 views

I used this example to start with the tabview : https://docs.telerik.com/devtools/xamarin/controls/tabview/getting-started/tabview-getting-started#defining-radtabview

This works fine on android and UWP. But on IOS when I click on a tab it openens the tab I clicked before?

See: https://www.screencast.com/t/6sNViC9cT

What am I missing here?

Regards,

Michel

Michel
Top achievements
Rank 1
 answered on 23 Jan 2018
3 answers
107 views

It appears that the all-day section of the day view is limited to four appointments formatted in a two column grid. Is there any way to alter this? I realize that there needs to be a practical limit on , but I'd like it to be more than four. I'd also like the appointments to take up the full width, a single column rather than two.

Absent any of that, I'd like to be able to indicate that there are more all-day appointments could be displayed.

It all probably comes down to guidance on how to alter or replace the AllDayEventsView in a custom renderer.

Thanks,

Craig

Nikolay
Telerik team
 answered on 23 Jan 2018
6 answers
912 views

Re: telerikDataControls:RadListView
Re: Binding, Converter
Re: accessing object in code behind

See also: https://forums.xamarin.com/discussion/54042/using-binding-with-value-converters

It seems that the converter should have access to the "object" from the list (recall that a RadListView gets it's data from a list of objects). The proper notation appears to be like:

<Label Text="{Binding Path=., Converter={StaticResource stateConverter}, ConverterParameter='some parameter'}" />

The converter looks like:

public object Convert(object obj, Type targetType, object parameter, CultureInfo culture)

But "obj" is always null. How can I access the object in the converter?

Thanks!

Lance | Senior Manager Technical Support
Telerik team
 answered on 22 Jan 2018
2 answers
162 views

I have added the libraries and registered the renderers and I'm getting the following:

 

System.NullReferenceException: Object reference not set to an instance of an object.
01-19 15:09:06.862 I/MonoDroid(25034):   at Telerik.XamarinForms.InputRenderer.Android.EntryAdapter.UpdateText

Stefan Nenchev
Telerik team
 answered on 22 Jan 2018
5 answers
202 views

Hello, I have an issue on Xamarin.IOS for RadCartesianChart that I can't solve.

This is my chart on in xaml:

<telerikChart:RadCartesianChart x:Name="rad"   >

                        <telerikChart:RadCartesianChart.Behaviors>
                            <telerikChart:ChartSelectionBehavior DataPointSelectionMode="Single"  />
                        </telerikChart:RadCartesianChart.Behaviors >

                          <telerikChart:RadCartesianChart.HorizontalAxis  >
                            <telerikChart:CategoricalAxis LineColor="#000" LabelFontSize="10" LabelFitMode="MultiLine" />
                        </telerikChart:RadCartesianChart.HorizontalAxis>

 
                        <telerikChart:RadCartesianChart.VerticalAxis >
                            <telerikChart:NumericalAxis LineColor="#000" />
                        </telerikChart:RadCartesianChart.VerticalAxis>
                        <telerikChart:RadCartesianChart.Series    >
                            <telerikChart:BarSeries  ItemsSource="{Binding DBSoldercolorsFirst}" CombineMode="Stack" CategoryBinding="CPE_NomeColore" ValueBinding="CPE_Nerogazioni"  >
                                <telerikChart:BarSeries.ValueBinding >
                                    <telerikChart:PropertyNameDataPointBinding PropertyName="CPE_Nerogazioni" />
                                </telerikChart:BarSeries.ValueBinding>
                                <telerikChart:BarSeries.CategoryBinding>
                                    <telerikChart:PropertyNameDataPointBinding PropertyName="CPE_NomeColore" />
                                </telerikChart:BarSeries.CategoryBinding>
                                <!--  <telerikChart:BarSeries.DefaultVisualStyle >
                                    <Style TargetType="telerikChart:BarSeries">
                                        <Setter Property="BackgroundColor" Value="#000"/>
                                    </Style>
                                </telerikChart:BarSeries.DefaultVisualStyle> -->
                            </telerikChart:BarSeries >
                            <telerikChart:BarSeries ItemsSource="{Binding DBSoldercolorsSecond}" CombineMode="Stack" ShowLabels="True" >
                                <telerikChart:BarSeries.ValueBinding >
                                    <telerikChart:PropertyNameDataPointBinding PropertyName="CPE_Nerogazioni" />
                                </telerikChart:BarSeries.ValueBinding>
                                <telerikChart:BarSeries.CategoryBinding>
                                    <telerikChart:PropertyNameDataPointBinding PropertyName="CPE_NomeColore"/>
                                </telerikChart:BarSeries.CategoryBinding>
                            </telerikChart:BarSeries >
                            <telerikChart:BarSeries ItemsSource="{Binding DBSoldercolorsThird}" CombineMode="Stack"  ShowLabels="True" >
                                <telerikChart:BarSeries.ValueBinding>
                                    <telerikChart:PropertyNameDataPointBinding PropertyName="CPE_Nerogazioni"  />
                                </telerikChart:BarSeries.ValueBinding>
                                <telerikChart:BarSeries.CategoryBinding>
                                    <telerikChart:PropertyNameDataPointBinding PropertyName="CPE_NomeColore"/>
                                </telerikChart:BarSeries.CategoryBinding>
                            </telerikChart:BarSeries>
                        </telerikChart:RadCartesianChart.Series>
                    </telerikChart:RadCartesianChart>

In Android and UWP it work well, but on IOS it crash on page's chart lunch.

If I'll remove the RadCartesianChart.HorizontalAxis tag the page will load withouth crash.
The data value of the binding seems to be correct.

I hope someone can help me. Thank you in advance.

Paola
Top achievements
Rank 1
 answered on 18 Jan 2018
3 answers
119 views

Hi there I am using the RadListView for Xamarin Forms and I'm encountering an error on iOS specifically.

In my scenario I give the user the option to remove a record from the list.

When I remove the last user from the collection bound to the list view I receive this error:

 

Xamarin.iOS: Received unhandled ObjectiveC exception: NSRangeException *** -[__NSArrayM objectAtIndexedSubscript:]: index 0 beyond bounds for empty array.

 

So it seems that the list view tries to view the first record of an empty list when the list is empty.

This issue is not occurring in my Android implementation.

Is there any solution to this issue.

Thanks for the help,

 

John

Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Jan 2018
5 answers
461 views

I've just walk through this tutorial - http://docs.telerik.com/devtools/xamarin/controls/listview/features/listview-features-load-on-demand#automatic-mode
for implementation of LoadOnDemand - which is triggered Automatically from XAML code behind.

It work as expected at Android for me - *LoadOnDemand* event is triggered each time, i'm scrolling list down (and causing already last list existing elements visible). Each and every time, even if there is no objects be to be added. RadListView indeed didn't know if there are anything to be added to UI or not, that's why it fires *LoadOnDemand* event, in order to check it from code behind.

The problem is, that *LoadOnDemand* triggers only once for me at iOS - after first scrolling down. When I'm scrolling again and again, and I'm reaching the end of the list, *LoadOnDemand* is not triggers again.

It's not any specific case of my code - I'm just using simplest example form here - http://docs.telerik.com/devtools/xamarin/controls/listview/features/listview-features-load-on-demand#automatic-mode as mentioned before.

Lance | Senior Manager Technical Support
Telerik team
 answered on 18 Jan 2018
3 answers
276 views

Hi!

I follow your sample for the Xamarin.Forms listview. But I need to use bahavior to respect the MVVM patturn. So I go my 2 behavior (one for selection and the other for LoadOnDemand)

lvAppels.Behaviors.Add(new EventToCommandBehavior
{
    EventName = "ItemTapped",
    Command = ((AppelsViewModel)BindingContext).ItemTappedCommand,
    Converter = new ItemTappedEventArgsConverter()
});
lvAppels.Behaviors.Add(new EventToCommandBehavior
{
    EventName = "LoadOnDemand",
    Command = ((AppelsViewModel)BindingContext).LoadOnDemandCommand
});

That work good but when the Listview is created or when I scroll down the LoadOnDemand is called several time. I think is because I do not call 

this.listView.IsLoadOnDemandActive = false;

But how I can do that from the viewModel without breaking the MVVM?!

Yana
Telerik team
 answered on 18 Jan 2018
1 answer
312 views

According to your main marketing page for the Xamarin UI Calendar it supports: 

"Single, Multiple and Range Date Selection
End users can select a single date, multiple or a range of dates." (source: https://www.telerik.com/xamarin-ui/calendar)

But I can see no way to do this on the control and no mention in the docs. Is this feature indeed missing, and if so, how far out is it on the roadmap?

I am capturing each selected date and using the SetStyleForCell method to handle it right now, but this is not very fast or clean.

Yana
Telerik team
 answered on 18 Jan 2018
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?