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"
InputMask="(###) ###-####" Font-Bold="True"
>
When initializing the grid, we have:
grdContacts.Columns.FromKey(
"PhoneNumber").Hidden = false;
"PhoneNumber").HeaderText = "Phone Number";
"PhoneNumber").Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom;
"PhoneNumber").EditorControlID = MaskPhoneNumbers.ID;
?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!
Hi Viktor,
on several pages in my project there is an Ajax populating the Counties dropdown, called on OnTextChanged of an asp:TextBox.
Is there a way to do the same thing with a WebMaskEdit? One of the pages in the project uses WebMaskEdit for a zipcode.
<
asp:UpdatePanel ID="UpdatePanel1" runat
="server">
<ContentTemplate
<asp:TextBox ID="txtHQZip" runat="server" MaxLength="5" Width="60px" OnTextChanged="txtHQZip_TextChanged" AutoPostBack="true" />
<asp:DropDownList ID="ddlCounty" runat="server" onChange="AssignToTextBox();"></asp:DropDownList
</ContentTemplate
</asp:UpdatePanel>
Thank you! I'm looking forward to giving this a try. I'll post the results but it may be awhile.
Hi,
That property is not serializable, so it can not be accessed within aspx. If should see it and modify within Properties at visual design. But it is really a run-time property. Example to use:
protected void Page_Load(object sender, EventArgs e){ string rawText = this.WebMaskEdit1.RawText;}
Sorry, but I don't see a property of RawText other than as a value for DataMode. How would it be used?
Thanks!
The WebMaskEdit has property RawText. That can be used to get/set value without literals regardless of the DataMode value. That is probably what you need.