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
>
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<…>
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.
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)
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);
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