We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Entering values in SfMaskedEdit when the cursor is on the mask

Hello

There was some problem when using SfMaskedEdit. The fact is that I use an element to enter the amount in bitcoins. Accordingly, the mask is as follows:

[0-9] * \.? [0-9] {1,8} BTC

If the user clicks on an element and the cursor goes beyond the space, then he cannot write anything until he moves the cursor to the position, at least before the space. However, if he moves the cursor to the “forbidden” position and begins to delete the content, then the behavior of the element becomes adequate, that is, the cursor moves to the nearest right character and it is deleted.

Is there a way to get an element to move the cursor and start typing when the user clicks on a position after a space?

Source code:
<maskedEdit:SfMaskedEdit x:Name="MaskedEditAmount"
                                 Mask="[0-9]*\.?[0-9]{1,8} BTC"
                                 MaskType="RegEx"
                                 HorizontalOptions="FillAndExpand"
                                 FontSize="40"
                                 Watermark="Сумма"
                                 WatermarkColor="#a2a2aa"
                                 WatermarkFontSize="40"
                                 TextColor="White"
                                 Keyboard="Numeric"
                                 BackgroundColor="Black"
                                 HorizontalTextAlignment="Center"
                                 ValidationMode="KeyPress"
                                 ValueMaskFormat="IncludeLiterals"
                                 BorderColor="#0D0D21"
                                 ErrorBorderColor="#0D0D21" />

Thank.

1 Reply

RA Rachel A Syncfusion Team August 26, 2019 02:09 PM UTC

Hi Igor, 
 
Thanks for contacting Syncfusion Support. 
 
We have updated the response for the same query in the incident. Please login to your direct trac account to further follow up. 
 
Thanks, 
Rachel. 


Loader.
Live Chat Icon For mobile
Up arrow icon