Hi,
I have a xamComboEditor, in which I would like to limit the length to 10. I want to restrict the user input after 10th character is keyed in. I tried using ValueConstraint, it has two issues, (1) it allows user to key in more than 10 characters and (2) it displays an error message after user tabs out of the cell. Neither of these behavior, I want. In my case user must be just restricted to type anything after the 10th character. Could you suggest how to go about this?
Thanks in advance.
Regards,
Balaji Rajendran
CCH - WK
Torrance, CA
Hello petetataliba,
I have been looking into your post, however I cannot seem to find any resemblance to this thread’s topic.
Please let me if you can elaborate on the correlation and if not please start up a new forum thread regarding tabbing.
Hello Balaji,
Excuse me for the late reply, I hadn’t noticed the thread was continued after that long. In order to achieve this you can get a copy of the XamComboEditor’s original templates and in particular the “ComboEditor_EditableComboBoxTemplate”, in which there is a TextBox that is being used for typing in the control. If you replace it with our XamMaskedEditor you would be able to use the Mask property to your advantage. The original templates can be found in the DefaultStyles folder( which is installed: C:\Program Files (x86)\Infragistics\NetAdvantage 2011.2\WPF\DefaultStyles\Editors\ EditorsGeneric.xaml by default)
Please let me know if I can be of any further assistance on the matter.
i to am having an issue with tabbing out of the control
Hi Peter,
Thanks for responding. Could you please elaborate on this with an example? I am not sure of how to retemplate xamComboEditor with XamMastEditor. I request your assistance on this.
Regarads,
Balaji Rajendran.
I have been looking into this for you and it seems there is no built-in way to achieve it. What I can suggest is that you retemplate the XamComboEditor so it uses a XamMaskEditor in its EditTemplate, which would provide the necessary functionality. You can start by copying its original templates to your project (you can get them form the DefaultStyles folder) and modify them of your choosing.
Please let me know if you require any further assistance on the matter.
Sincerely,
Petar Monov
Developer Support Engineer
Infragistics Bulgaria
www.infragistics.com/support