Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1855
xam data grid input mask
posted

   i am trying to mask xamdatagrid fields so they accept a certain amount of characters. the below code works to an extent. My first problem is that when i enter data into this field, leave, then come back for edit it is hiding the text in the control.  My second question would be how can i make this more generic to use with multiple fields as i have quite a few fields that need to allow only 50 characters in this grid.

 

thanks in advance

<igDP:Field Name="ID" Label="{Binding Path=Id, Source={x:Static Internationalization:CultureResources.CultureStrings}}">
                                        <igDP:Field.Settings>
                                            <igDP:FieldSettings>
                                                <igDP:FieldSettings.EditorStyle>
                                                    <Style
                              TargetType="{x:Type igEditors:XamMaskedEditor}" >
                                                        <Setter
                                  Property="Mask"   Value="aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"/>
                                                    </Style>
                                                </igDP:FieldSettings.EditorStyle>
                                            </igDP:FieldSettings>
                                        </igDP:Field.Settings>
                                    </igDP:Field>