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
1655
Infragistics XamNumericEditor: Require XamNumericEditor as a numeric textbox which can take values from 0 to 999
posted

Hi all,

            Require to make the XamNumericEditor as a numeric textbox which can take values from 0 to 999.

 

            I’ve tried the following code as mentioned below Code1 and Code2, Getting error message "Value is invalid, Please enter a Valid value" when numbers are provided which are less than three digits number and tabbed out.

 

            Looks like it is validating the blank value and providing invalid value message. Is there any solution/workaround for this?

 

Thanks

Ritesh

 

Code1:

<igEditors:XamNumericEditor Grid.Column="1" Margin="21,6,8.5,1" Name="txtMinFlightDelay" xmlns:igEditors="http://infragistics.com/Editors" ToolTip="Enter Minimum Flight Delay" TabIndex="0" Mask="###"/>

 

 

Code2:

                        <igEditors:XamNumericEditor Grid.Column="1" Margin="21,6,8.5,1" Name="txtMinFlightDelay" xmlns:igEditors="http://infragistics.com/Editors" ToolTip="Enter Minimum Flight Delay" TabIndex="0" Mask="###">

                            <igEditors:XamNumericEditor.ValueConstraint>

                                <igEditors:ValueConstraint ValidateAsType="PositiveInteger64" MinInclusive="0"  MaxInclusive="999"/>

                            </igEditors:XamNumericEditor.ValueConstraint>

                        </igEditors:XamNumericEditor>

 

 

Error message in Messagebox: "Value is invalid, Please enter a Valid value".

     

Parents Reply Children
No Data