In general the purpose of the .UnMaskOnPost() is to specify whether the input value of the component will be unmasked or not on form post. If set to true the input will not have mask rules applied. For example:
In this scenario, the input value on form post would be "5551234567" instead of "(555) 123-4567".
With that said, I have created a sample project which illustrates both scenarios of the .UnmaskOnPost() configuration. Whilst retrieving the input values on form post in the following Action Method:
Finally, I am attaching the sample project for you to review.
If this example does not help, please consider providing additional details about the configuration you currently have. Or, if it is possible, try to reproduce the issue you are facing in the provided sample.
Regards,
Alexander
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
I can confirm that the it works as expected in your example.
There is some other issue in the application.
Thanks
Alexander
Telerik team
commented on 25 Nov 2021, 01:11 PM
If the issue remains unresolved and you think it is relevant to the MaskedTextBox component consider reproducing it in an isolated environment. For example in a Telerik REPL with the component's configuration. Or if possible try to reproduce it in the sample previously sent.