on 05-23-2016 10:17 AM
hi,
I am using a MaskInput in Dialog, and would like to clear the value before the Dialog opens.
What I have done so far,
used setValue(null) and
cleared the value data binding value using, oModel.setProperty("/maskIpt", "");
When the element is rendered, it shows the place holder String, it means that the value of the MaskInput is cleared,
The problem
is when I start typing the previous value is displayed.
Is there a method to reset the input, to display the initial value with the placeholder characters (eg: ____-____) every time I open the dialog?
Thank you
Sudhir Kancherla
Hi Sudhir,
Yes, I do see that issue.
One solution would be destroying your dialog using afterClose event and re-create the Mask Input control.
Will this sample help? MaskInput
Regards,
Sai Vellanki.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You do not need to destroy the dialog.
You just have to setMask before dialog open
JS Bin - Collaborative JavaScript Debugging
Thanks
-D
User | Count |
---|---|
67 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.