ejMaskEdit unmaskedValue

Hi, Team

I wish to send to my post controller all the value with format. this is my code

@(Html.EJ().MaskEditTextBoxFor(model => model.duracionCitaRuedaNegocios)
                        .InputMode(InputMode.Text).MaskFormat("99:99").WatermarkText("HH:MM")
                        .ClientSideEvents(s=>s.FocusOut("duracioncitavalidate"))
                        )

when i give this input 01:15, send me "0115", i need to send "01:15"

Thanks

1 Reply

AB Ashokkumar Balasubramanian Syncfusion Team November 13, 2017 12:06 PM UTC

Hi Johanny, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your requirement (“Get the formatted value on MaskEdit Component”). You can achieve your requirement by using get_UnstrippedValue method of MaskEdit Component. Please check the below code block. 
 
[Script] 
 
function duracioncitavalidate(args){ 
      alert(this.get_UnstrippedValue()); 
} 
 
To know more details about get_UnstrippedValue method, please check the below help document. 
 
 
Please let us know, if the provided information’s are helpful to achieve this requirement. 
 
Regards, 
Ashokkumar B. 


Loader.
Up arrow icon