Monday, November 12, 2012

telerik grid masked column not working


this is the dummy solution.



RadMaskedTextBox dummyTextBox = new RadMaskedTextBox(); 
protected void ClientRadGrid_ItemDataBound(object sender, GridItemEventArgs e) 
{ 
   if (e.Item is GridDataItem) 
   { 
        GridDataItem item = (GridDataItem)e.Item; 
        dummyTextBox.Mask="+## (###) ### ## ##"; 
        dummyTextBox.Text = item["Phone"].Text; 
        item["Phone"].Text = dummyTextBox.TextWithPromptAndLiterals; 
    } 
}

No comments:

Post a Comment