I have a Xamarin.Forms app, but I only am using it for UWP at the moment. The plan is to have Android and iOS later, but I am having issues with the RadNumericInput (Xamarin.Forms) and how the decimal key is handled.
Here is my XAML
<tkInput:RadNumericInput Grid.Row="4" Grid.Column="1" Value="{Binding Price, Mode=TwoWay}" StringFormat="{}{0:C2}" />
Right now, "Price" will default to 0. The UI will initially show $0.00 because of the StringFormat. That is working fine. When I put focus into the control, I only see 0, that is also fine. The issue is when I try to type a decimal. The value disappears and I see an issue in my Output that says -- Binding: can not be converted to type 'System.Int32'
Example steps:
**** Also, the Version of the Telerik controls I am using is -- 2019.2.603.360. The drop down below doesn't let me choose that version.
When using Xamarin.Forms 3.6 and UI for Xamarin 2019.1.316, the RadNumericInput control does not fire the Unfocused event (on Android and iOS).
This can be easily reproduced using the following code:
<telerikInput:RadNumericInput x:Name="BuyerAmount" Unfocused="BuyerAmount_OnUnfocused" StringFormat="{}{0:C2}"/>
As a temporary workaround, I am able to get the Unfocused event from the ControlTemplate's internal NumericInputEntry control:
<numericInput:NumericInputEntry x:Name="PART_Entry" Unfocused="BuyerAmount_OnUnfocused" ... />
This is a very unattractive solution as I need to define a separate ControlTemplate for every control instance that I need separate event handlers.
Value is not applied correctly when StringFormat property is used (N format specifier): For example
<telerikInput:RadNumericInput StringFormat="{}{0:N0}"
Value="{1234.56543}"/>
Steps to reproduce 1. Run the solution on UWP 2. When main page is loaded tap "Next Page" 3. Put the cursor focus onto the numeric input field 4. Without losing the focus tap back button 5. Application crashes Available in minor release 2018.2.821. It will also be available in the R3 2018 release.
1. If there is "0" and you are trying to add "." (dot) after it - it doesn't allow you to do this (droid and iOS) 2. Start input from "." and you will see cursor before dot, not after it as usually is happening (droid only) 3. Start input ".0" and it changes to "0", if I want to get number e.g. 0.09 (droid and iOS) Available in minor release 2018.3.1122. It will also be available in the R1 2019 release.
Available in the R2 2018 release.
Samsung numeric keyboards insert minus sign after the second stroke of a multi-functional button. This restricts Samsung end users to directly insert minus in the RadNumericInput because the control reacts on the beforehand entered decimal separator. We should improve our logic in order to handle this type of input. Available in the 2018 R2 SP release.