|
<input id="datepicker" />
<SfMaskedTextBox @ref="TxTstart" ID="@MaskId" Mask="@Mask" Created="OnMaskInitialized"></SfMaskedTextBox>
<SfButton @onclick="@PdfExport" Content="Pdf Export"></SfButton>
@code {
SfMaskedTextBox TxTstart;
public string DatepickerID = "date";
public string MaskId = "mask";
public string Mask = "[0-1][0-9]/[0-3][0-9]/[1-2][0-9][0-9][0-9]";
public void OnMaskInitialized()
{
this.JSRuntime.InvokeVoidAsync("onMaskInitialized", "" + this.DatepickerID, "" + this.MaskId);
}
public async Task PdfExport()
{
var dateValue = await this.TxTstart.GetMaskedValue();
}
} |
Hello syncfusion team, I did some tests with this example you provided, but this solution only works up to version 18.3.0.53 because in the latest versions it doesn't bring the code for the "ej2_instances" property in javascript.
Can you give me another solution?
Hi Rodrigo,
We have created tha sample for the requested requirement and shared it below for reference.
Sample : https://www.syncfusion.com/downloads/support/directtrac/general/ze/Datepicker-514166914
Kindly try the above sample and let us know if this meets your requirement.
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Regards,
Udhaya Kumar D
Hello syncfusion team,
The solution worked.
Thanks.
Hi Rodrigo,
We are glad that your requirement has been fulfilled on your end. We are always happy to assist you.
Udhaya Kumar D