Hi Phil,
We have checked the reported issue with the code snippet provided. But we are unable to reproduce the reported issue at our end. Please find the tested sample from the below link.
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Gettingstarted1946606314
Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/MaskedEditVideo.mov483624324
Could you please check the issue with the attached sample and let us know whether it is reproduced or not? If the issue was not reproduced, please revert us by modifying the sample based on your application along with replication procedure like short video or provide the sample and also share which platform that you are facing the reported issue. This will be helpful for us to investigate further and provide you a better solution at the earliest.
Regards,
Rabhia Beham.
I'm also experiencing this issue, unfortunately even after the latest update, The CursorPositionChanging event doesn't fire not even after the first time one taps on it, nor the second or third time, the only time it fire's is when a user types, which is too late, because by that they'd most probably be confused as to why nothing is happening when they type, which is a result of the cursor being placed right at the end of the MaskedEdit.
Hi Andreas Resch,
We have checked the reported issue. As per current
implementation when focusing initially OR un-focusing and focusing
the control, the cursor will be positioned correctly in the start position.
The problem occurs when the control is already in focus and again Tapped
on the control text, it is automatically moves to the
last or middle (as space is available in middle) position.
We have checked this behavior with framework control Entry in Forms.iOS. Both
Forms Entry and SfMaskedEdit inherit the Native UITextField and worked
similarly when you Tapped the control text after control focused. We
have positioned the cursor when control is focused. Hence, moving cursor to
the last or middle position on control Tapped is the
behavior of the native control and it is not the control side issue. You
could please check with native framework control behavior and let us know if
you have any concerns.
Regards,
Sridevi S.
Hi there,
I'm not sure what the result of this was in the end? From a logical perspective from an end-user perspective:
1) When the control is focussed for the first time, with only the mask present and no user text, the cursor should be positioned at the start so the user can begin typing.
2) When the user has already entered text and the control is focussed, the cursor should be positioned at the end (or select the whole text if `SelectAllOnFocus` is set to true).
From what I am experiencing when the control is focussed it is completely random if the cursor appears at the start or end. It is very frustrating for the end-user when the cursor is positioned after the mask by default as they then have to reposition it to the start. This is happening for me on the simulator and on the device. It is not something I would expect to solve with the `CursorPositionChanging` event, it should be the default behavior as this is logical. It is also fine to say this is the default for the Entry control, but this is a different control and as the Entry doesn't use a mask they cannot be compared.
It seems a few users have suggested this and the control has not been updated, the cursor still positions randomly and not at the start. I hope Syncfusion can have a think about this default behavior and update the control. In the mean time did anybody find a workaround?
Many thanks
Wi
Hi there,
This is not the case that I have experienced. For me it is happening both in the simulator and on the device. I have attached a video showing me tapping on the control for the first time on an iPad and the cursor being positioned at the end, ie. after the mask. Sometimes it goes to the end, sometimes to the start. It should always default to the end. The code I have used is from your sample:
Many thanks
Will
Hi Eswaran,
The device I have tested on is an iPad. Just to make sure we are talking about the same thing, I am talking about when the control is focussed by a touch input. I'm not sure from your video if this is the case?
Will
Hi Eswaran,
I have also seen this issue on an iPhone device, iPhone 11 I believe. Same issue as in the video I posted. At least I can definitely say I have had no issues on Android devices.
Thanks
Will
Hello,
we have the same behavior on iOS devices as William. No matter what i try, the cursor is always placed at the end of the Mask when focusing the empty maskedit.
Mask: LL00 0000 0000 0000 0000 00 (IBAN)
Syncfusion: 19.3.0.46
Device: iPad Air 3rd generation
iOS: 15
xcode: 13
Regards,
Hi Fabian Swoboda,
Thanks for your patience.
We have fixed the reported issue “[iOS] SfMaskedEdit cursor not always at the beginning of the text upon focus” and this is included in our Volume 4 release.
We are glad to announce that our Essential Studio 2021 Volume 4 release v19.4.0.38 is rolled out and is available for download under the following link.
We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.
Regards,
Vignesh Ramesh.
Hi Vignesh,
This update seems to have resolved the problem for me, many thanks!
Will
Hi,
also tested it and it works as expected. Thanks for the fix.
Regards,
Fabi