I'm having some issues getting the XamMaskedEditor Converter to work, and I'm not sure if it's my approach or something I'm missing. I'm trying to get a time format mask and convert that to a timespan (e.g. hh:mm:ss).
In NetAdvantage for WinForms I accomplished this via a DataFilter on my UltraMaskedEdit. I thought I could accomplish the same thing with the XamMaskedEditor and similar ValueToDisplayTextConverter/ValueToTextConverter converters. However, when I set both of these up, XamMaskedEditor doesn't seem to respect the converter in edit mode. DisplayMode appears to work correctly.
Are there any examples out there of something similar? The documentation refers to a similar case here: http://help.infragistics.com/Help/NetAdvantage/WPF/2007.2/CLR3.X/html/xamEditors_Overview_of_the_ValueEditor_Class.html
but I have not been able to find code/examples in the rest of the docs or the feature browser.
Is this the correct approach, or is the appropriate replacement for the DataFilter functionality at the DataBinding instead?
Any help is appreciated. Thanks,
- Micah
Ok! Thanks! I've tried with the converter of the binding and worked fine! The problem is that in the converter of the binding, the parameter "parameter" doesn't receive the Editor like in the ValueToTextConverter or ValueToDisplayTextConverter. But I can resolve doing a Converter for each ValueType.
Hi,
This is from one of our engineers:
As to whether there’s a bug somewhere in the masked editor, I’m not completely sure however there seems like a bug in the masked editor. However as far as the customer’s sample goes, all he needs to do to make this work the way he wants is to not specify any converters on the editor and instead specify them on the binding object that binds the editor’s value property to the data object. I’ve made the necessary changes in the sample (attached) to get the desired behavior (see attachment).
Please let us know if this helps.
Hello,
I apologize, this post was lost in the shuffle of things to do. I have asked an engineer to respond to this post as soon as possible.
Thank you!
Any answer? I've a similar problem... the ValueToDisplayTextConverter works fine, but ValueToTextConverter doesn't work!
Thanks for the excellent sample!
I (or an engineer) will get back to you with an answer.
Thanks!