I am having an issue when I use the following column in a grid:
<telerik:GridMaskedColumn DataField="Phone" HeaderText="Phone" UniqueName="Phone" Mask="(###) ###-####" />
In code behind:
protected void grid1_UpdateCommand(object sender, GridCommandEventArgs e)
{
GridEditableItem item = e.Item as GridEditableItem;
int licenseSponsorId = Convert.ToInt32(item.GetDataKeyValue("LicenseSponsorId"));
CDS.LicenseSponsor licenseSponsor = _db.Get<CDS.LicenseSponsor>(licenseSponsorId);
item.UpdateValues(licenseSponsor);
_db.Update(licenseSponsor);
}
The call to UpdateValues() results in "() -" being assigned to the Phone field when the user does not enter any input in the Phone field...
Is there a way to change this behavior?
<telerik:GridMaskedColumn DataField="Phone" HeaderText="Phone" UniqueName="Phone" Mask="(###) ###-####" />
In code behind:
protected void grid1_UpdateCommand(object sender, GridCommandEventArgs e)
{
GridEditableItem item = e.Item as GridEditableItem;
int licenseSponsorId = Convert.ToInt32(item.GetDataKeyValue("LicenseSponsorId"));
CDS.LicenseSponsor licenseSponsor = _db.Get<CDS.LicenseSponsor>(licenseSponsorId);
item.UpdateValues(licenseSponsor);
_db.Update(licenseSponsor);
}
The call to UpdateValues() results in "() -" being assigned to the Phone field when the user does not enter any input in the Phone field...
Is there a way to change this behavior?