Saving Mask Column Text instead of Value

2 posts, 1 answers
  1. Brad
    Brad avatar
    20 posts
    Member since:
    Apr 2010

    Posted 28 Sep 2011 Link to this post

    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;
  2. Answer
    Peter avatar
    1151 posts

    Posted 30 Sep 2011 Link to this post

    Hello Brad,

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

    All the best,
    the Telerik team

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

Back to Top