Hi
We have a requirement where we want to save phone numbers into the DB along with the formatting of (###) ###-#### .
These numbers are entered on a RadGrid, where I use a GridMaskedColumn with a Mask of (###) ###-#### so that the auto-edit form displays the mask for the user when he is entering the number.
But once the user has entered the number and presses the insert link, it the numbers w/o the formatting into the DB field.
Question: How do I set up my GridMaskedColumn (or any other type of GridColumn) so that the generated edit form will have the text field with the Mask and also insert / update the data along with the mask?
FWIW - I found that the MaskedTextBox control has a TextWithLiterals property which returns the string with the formatting, but I'm not sure how to force the edit form to save this TextWithLiterals instead of just the Text.
Any guidance will be very much appreciated.
Thanks
We have a requirement where we want to save phone numbers into the DB along with the formatting of (###) ###-#### .
These numbers are entered on a RadGrid, where I use a GridMaskedColumn with a Mask of (###) ###-#### so that the auto-edit form displays the mask for the user when he is entering the number.
But once the user has entered the number and presses the insert link, it the numbers w/o the formatting into the DB field.
Question: How do I set up my GridMaskedColumn (or any other type of GridColumn) so that the generated edit form will have the text field with the Mask and also insert / update the data along with the mask?
FWIW - I found that the MaskedTextBox control has a TextWithLiterals property which returns the string with the formatting, but I'm not sure how to force the edit form to save this TextWithLiterals instead of just the Text.
Any guidance will be very much appreciated.
Thanks