Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
WebMaskEdit with RawText DataMode
posted

We recently upgraded to version 8.3 and are experiencing problems with the WebMaskEdit control when used in an UltraWebGrid column and saving data with the RawText Mode.  Please note that the same problem does not exist when using the control as a standard input control.

The definition we are using for the control is:

 <igtxt:WebMaskEdit id="MaskPhoneNumbers" runat="server"

 

 

CssClass="txtAttributes" DataMode="RawText" DisplayMode="Mask"

 

InputMask="(###) ###-####" Font-Bold="True"

>

 

 

</igtxt:WebMaskEdit

>

 

When initializing the grid, we have:

 

grdContacts.Columns.FromKey(

"PhoneNumber").Hidden = false;

grdContacts.Columns.FromKey(

"PhoneNumber").HeaderText = "Phone Number";

grdContacts.Columns.FromKey(

"PhoneNumber").Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom;

grdContacts.Columns.FromKey(

"PhoneNumber").EditorControlID = MaskPhoneNumbers.ID;

 

We need to save the phone number without the literal characters.  When viewing the RealText of the control, we see the following:

?MaskPhoneNumbers.RealText

"(40) 7-659"

As such, the RawText value being sent to the database is '407659'.  Is there anyway to get the true RawText value?  We have tried various approaches and the only method that will work is if we save the literals to the database which we do not want to do.

In version 6.3, this control worked as we needed it to.

Any help with this quirky behavior will be greatly appreciated.

Thanks and have a great day!

Parents
No Data
Reply
  • 24497
    Suggested Answer
    posted

    Hi,

    The RealText property, which appears in aspx, represents value which is sent to client in internal format. It is not related to the string used for get/setValue (used by grid). That property was not designed for public access. If editor is stand alone (not grid editor), then public properties Text and Value should be used.

    If data, which are used to initialize editor and get value after end edit mode, contain literal characters, then the DataMode should be set to RawTextWithLiterals, or RawTextWithRequiredPromptsAndLiterals, or AllText depending on requirements of application.

Children