This is a migrated thread and some comments may be shown as answers.

Saving Mask Column Text instead of Value

1 Answer 85 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Brad
Top achievements
Rank 1
Brad asked on 28 Sep 2011, 07:19 PM
I am using a GridViewMaskBoxColumn for formatted string entry, because I am working with an existing data store that contains text entries. I would like to save the fully formatted value, not just the entered characters .

Am I able to bind the column so that the Text property of the cell editor is saved to the data store instead of the Value property. It would be the difference between storing :
masked Value : 1234567890
masked Text :    12-34-567-89-W0

Here is the columns Designer code.
gridViewMaskBoxColumn1.FieldName = "LSD";
gridViewMaskBoxColumn1.HeaderText = "ll-ss-ttt-rr-mm";
gridViewMaskBoxColumn1.Mask = "00\\-00\\-000\\-00\\-\\W0";
gridViewMaskBoxColumn1.MaskType = Telerik.WinControls.UI.MaskType.Standard;
gridViewMaskBoxColumn1.Name = "LSDM";
gridViewMaskBoxColumn1.Width = 120;

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 30 Sep 2011, 05:32 PM
Hello Brad,

Please find the answer in your ticket: Custom Mask Box Column editor in RadGridView (Ticket ID: 468658).

All the best,
Peter
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Brad
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or