Hi.
I want to set only max length of the XamMaskedEditor the control only 30 chars using mask property only.
<
igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamMaskedEditor}">
<Setter Property="Mask" Value=""/>
</Style>
</igDP:FieldSettings.EditorStyle>
Can any guide me what value of mask property need to set?
Hello Nirmit,
You can use the ValueConstraint Property of the XamMaskedEditor. You can set it like this:
<igEditors:XamMaskedEditor Name="xamMaskedEditor1" VerticalAlignment="Top" > <igEditors:XamMaskedEditor.ValueConstraint> <igEditors:ValueConstraint MaxLength="200"/> </igEditors:XamMaskedEditor.ValueConstraint> </igEditors:XamMaskedEditor>
Hope this helps you.
Hi,
My requirement is to restrict user to 200 chars. Please advice.
Regards,
Nirmit
Hello,
I am just checking if you require any further assistance on the matter.
Sincerely,
Ekaterina
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hello
Thank you for your answer.
In order to specify the number of the characters. no matter of their type, you can just write “C” as many times as characters you would like to have. For example Mask="CCC" would set a restriction of 3 characters.
Please do not hesitate to ask in case of future requests.
Infragistics, Inc.
Hello, Ekaterina.Thanks for reply.I used this but it's not solving my requirment. I need to set only length of characters and there is no any restrictions on entering characters. Above mask creates restriction on entering characters. Please guide me on this.FromAmeeth Paatil