Hi,
I have a situation where, I have to display the phone number based on user choice, this could be in any format for e.g. '(xxx)-xxx-xxxx', I don't want user to edit it.
for this I am using a infragistics field since its a datapresenter I don't want to use editor, I tried using MaskedTextField but my Mask property is not responding to binding and tried using converter as well but its not working, so how can I achieve just showing data based on user preference?
Hello Sumeet,
I have attached a XamDataGrid sample which demonstrates how to implement binding for a MaskedTextField. You can write something similar to this for your XamDataPresenter MaskedTextField.
Please review the sample and let me know if I may be of further assistance.DataGrid_EditorType.zip
Hi Sahaja,
Thanks for your reply, well I am looking to bind a property to the mask, which will tell the format while loading the application, I don't want a hard coded value for mask property, something like this:
<igDP:MaskedTextField Name="Name" Mask="{Binding Path=Format}"/>
So is it possible to bind mask property?
Thanks Sahaja, for your quick reply, I am aware about MaskedTextField but this is not what I am looking for, I am looking to bind the mask property and set its value at the window loading, I am using binding because the format will be decided by user & while loading the window it will change from user to user.