When editing the column it uses the mask as expected but when displayed within the column it uses the raw un-masked value. How do I use a mask for both display and editing?
2 Answers, 1 is accepted
0
Yavor Georgiev
Telerik team
answered on 23 Jun 2010, 10:17 AM
Hello Marc,
The GridViewMaskedTextBoxColumn uses the RadMaskedTextBox to provide its functionality, it does not contain any masking logic on its own.
I would suggest you to subclass the GridViewMaskedTextBoxColumn and override the CreateCellElement method to call the CreateCellEditElement method and customize the RadMaskedTextBox it returns to make it non-editable and show it:
Please let me know if you need further assistance.
Best wishes,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items