Telerik Forums
UI for Xamarin Forum
3 answers
303 views

Hello Telerik Team,

I know there is a command, ClearCommand from the RadPickerBase, which could be used in order to clear out the picker's value. But I need to be able to clear the picker value from inside the selector Popup. Can you help me with this?

This is my datePicker declaration:

<telerik:RadDateTimePicker SelectedDate="{Binding Value}">
  <telerik:RadDateTimePicker.SelectorSettings>
    <telerik:PickerPopupSelectorSettings FooterTemplate="{StaticResource PickerFooterTemplate}" />
  </telerik:RadDateTimePicker.SelectorSettings>
</telerik:RadDateTimePicker>

And this is an attempt to get the Clear command from the datePicker:

 

 

 

 

01.<ControlTemplate x:Key="PickerFooterTemplate">
02.  <StackLayout Orientation="Horizontal"
03.      Spacing="0"
04.      HorizontalOptions="FillAndExpand"
05.      BackgroundColor="{StaticResource SecondaryButtonColor}">
06.    <Button Text="Clear"
07.      TextColor="{StaticResource TextColor}"
08.      BackgroundColor="Transparent"
09.   -->Command="{Binding Source={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadDateTimePicker}, AncestorLevel=1}, Path=ClearCommand}" />
10.    <Button Text="{TemplateBinding AcceptButtonText}"
11.      TextColor="{StaticResource TextColor}"
12.      BackgroundColor="Transparent"
13.      Command="{TemplateBinding AcceptCommand}" />
14.    <Button Text="{TemplateBinding CancelButtonText}"
15.      TextColor="{StaticResource TextColor}"
16.      BackgroundColor="Transparent"
17.      Command="{TemplateBinding CancelCommand}" />
18.  </StackLayout>
19.</ControlTemplate>

Didi
Telerik team
 answered on 20 May 2020
1 answer
224 views
Hello good afternoon I am testing the ListPicker. Is there a C # command to display the ListPicker? Thank you
Didi
Telerik team
 answered on 18 May 2020
1 answer
172 views

I added follow code in my project, and it worked on debug mode(both simulator and phsical device), but when I release version to appstore testflight, It crashed app on the start moment.

Version is: 2020.2.513.1, from Nuget

<telerikPrimitives:RadBusyIndicator x:Name="busyIcon"
    WidthRequest="50"
    HeightRequest="50"
    AnimationContentHeightRequest="30"
    AnimationContentWidthRequest="30"
    AnimationType="Animation3"
    InputTransparent="True"
    AnimationContentColor="#0010FF"
    IsBusy="True" />

 

Crash log:

Unhandled Exception:
System.FormatException: Missing property Angle for type Telerik.XamarinForms.Common.RadRotateTransform.
  at Telerik.XamarinForms.Common.RadAnimation.ParsePropertyPath () <0x1046a88d0 + 0x002ac> in <929afeb7a38f475f9d99bceb2d877ef0#66a759f5bd22eddc758fd4fd4947aae4>:0
  at Telerik.XamarinForms.Common.RadAnimation.UpdateTargetPropertyValue (System.Object value) <0x1046a8850 + 0x00037> in <929afeb7a38f475f9d99bceb2d877ef0#66a759f5bd22eddc758fd4fd4947aae4>:0
  at Telerik.XamarinForms.Common.RadDoubleAnimation.OnAnimationValueChanged (System.Double value) <0x1046a91b0 + 0x00053> in <929afeb7a38f475f9d99bceb2d877ef0#66a759f5bd22eddc758fd4fd4947aae4>:0
  at Telerik.XamarinForms.Common.RadDoubleAnimation.OnAnimationTick (System.String animationName, System.Double value) <0x1046a9130 + 0x0003b> in <929afeb7a38f475f9d99bceb2d877ef0#66a759f5bd22eddc758fd4fd4947aae4>:0
  at Telerik.XamarinForms.Common.RadAnimation.Telerik.XamarinForms.Common.Animations.IDoubleAnimationListener.OnAnimati<…>
Didi
Telerik team
 answered on 14 May 2020
3 answers
714 views

Hello,

I am trying to binding the colors of a GaugeBarIndicator, but it doesn't work. The error is: "Cannot assign property "Color": Property does not exist, or is not assignable, or mismatching type between value and property"

Code XAML file:

<telerikGauges:RadRadialGauge x:Name="gauge" AxisRadiusFactor="1"
     StartAngle="90" SweepAngle="360">
    <telerikGauges:RadRadialGauge.Axis>
        <telerikGauges:GaugeLinearAxis Minimum="0" Maximum="1"
             StrokeThickness="0" ShowLabels="False" />
    </telerikGauges:RadRadialGauge.Axis>
    <telerikGauges:RadRadialGauge.Indicators>
        <telerikGauges:GaugeBarIndicator Value="1"
             StartThickness="10" EndThickness="10" Fill="#ebebeb" />
        <telerikGauges:GaugeBarIndicator Value="0.5" StartCap="Oval"
             StartThickness="10" EndThickness="10" EndCap="Oval"
             IsOffsetRelative="True">
            <telerikGauges:GaugeBarIndicator.GradientStops>
                <telerikCommon:RadGradientStop Offset="0"
                     Color="{Binding StartColor}" />
                <telerikCommon:RadGradientStop Offset="1"
                     Color="{Binding EndColor}" />
            </telerikGauges:GaugeBarIndicator.GradientStops>
        </telerikGauges:GaugeBarIndicator>
    </telerikGauges:RadRadialGauge.Indicators>
</telerikGauges:RadRadialGauge>

 

The property in C# file:

private Color startColor;
public Color StartColor
{
    get { return startColor; }
    set {
        startColor = value;
        OnNotifyPropertyChanged("StartColor");
    }
}

 

Do you know how can I make it work?

 

Thank you.

Petar Marchev
Telerik team
 answered on 11 May 2020
12 answers
437 views

Hi there,

I'm struggling to get the ListView working on my iOS devices. On the simulator these work fine, but on the devices i keep getting this error;

NullReferenceException: Object reference not set to an instance of an object

on the following line in my Main.cs file (same as the default xamarin one);

UIApplication.Main(args, null, "AppDelegate");

here's the stack trace

at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell.UpdateSelectionViewStyle () [0x000b5] in <69c148d17a40435da18b2f1c1ff180c5>:0
at Telerik.XamarinForms.DataControlsRenderer.iOS.ListView.UIListViewCell.UpdateCell (Telerik.XamarinForms.DataControls.RadListView owner, System.Object dataItem) [0x0005a] in <69c148d17a40435da18b2f1c1ff180c5>:0
at Telerik.XamarinForms.DataControlsRenderer.iOS.ListViewDataSource.InitCell (TelerikUI.TKListView listView, Foundation.NSIndexPath indexPath, TelerikUI.TKListViewCell tkCell, Foundation.NSObject obj) [0x000f5] in <69c148d17a40435da18b2f1c1ff180c5>:0
at ObjCRuntime.Trampolines+SDActionArity4V1.Invoke (System.IntPtr block, System.IntPtr arg1, System.IntPtr arg2, System.IntPtr arg3, System.IntPtr arg4) [0x00033] in <9e260fcc0dbf47638fe447f503155067>:0
at (wrapper native-to-managed) ObjCRuntime.Trampolines+SDActionArity4V1:Invoke (intptr,intptr,intptr,intptr,intptr)
Fernando
Top achievements
Rank 1
 answered on 07 May 2020
2 answers
93 views
I am setting the start and end date on the control which works mostly but the senario I am having issues with is if I set the end date for 1 month in the future it shows the rest of the year in the picker (which isnt a big deal really) and if i select a date say 2 months in the future it never updates the selected date (which is correct) but it just closes the control without any user feedback. Is there an event that can catch this or some way of setting a warning?
Simon
Top achievements
Rank 1
Veteran
 answered on 06 May 2020
8 answers
208 views

Hi, I need to animate my RadBorder. However, when I rotate border to the left, my controls are overlapped. Code is attached. I did it using Frame as a parent element and it works fine.

<telerikPrimitives:RadBorder x:Name="bnSolo" Grid.Row="0" Grid.Column="0"  BorderColor="Yellow" CornerRadius="25">
    <Grid BackgroundColor="Transparent">
        <Image Source="homesolo" VerticalOptions="StartAndExpand" HorizontalOptions="CenterAndExpand" />
        <Label Text="Solo" VerticalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand" />
    </Grid>
    <telerikPrimitives:RadBorder.GestureRecognizers>
        <TapGestureRecognizer Tapped="PlayNowButton_Clicked" />
    </telerikPrimitives:RadBorder.GestureRecognizers>
</telerikPrimitives:RadBorder>

 

await bnSolo.RotateTo(25, 500, Easing.Linear);
await bnSolo.RotateTo(-25, 500, Easing.Linear);
Kyrylo
Top achievements
Rank 1
 answered on 30 Apr 2020
5 answers
857 views

Hi,

I am popping up a modal message that I want the user to acknowledge by pressing on a close button inside the popup.

If they accidently press the back button on the device the modal popup is closed.

Is there any way to stop this from happening?

Thanks

Anthony

Yana
Telerik team
 answered on 30 Apr 2020
1 answer
206 views
This isnt necessarily just blank values but I am trying to style the group template based on the value being grouped on. I have a custom GroupHeaderTemplate and GroupHeaderStyle set and have tried converters but it never seems to be fired. is this the right path or is there another way of hiding the groupby header or using a different template based on the vale being grouped?
Lance | Senior Manager Technical Support
Telerik team
 answered on 28 Apr 2020
6 answers
409 views
I've recently gotten this message when submitting to Test Flight:
ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information.

I am not using UIWebView anywhere in my application, so I'm wondering do any of the Telerik Xamarin controls use it?
Lance | Senior Manager Technical Support
Telerik team
 answered on 28 Apr 2020
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
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?