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
2940
Minimum and Maximum in Spin button issue.
posted

Hi... I am using spin button control in my project.I am doing like this...

 

 <Editors:XamMaskedEditor  Grid.Column="4" Margin="5" Width="70" Mask="nnnn"

                IsAlwaysInEditMode="False" SpinIncrement="1" SpinWrap="True"

                                                     SpinButtonDisplayMode="Always" Theme="[Current]"                                DisplayMode="IncludeBoth"   Value="{Binding DocumentNumber, Mode=TwoWay, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged}"                                      DataMode="IncludeBoth" IsInEditMode="False" TrimFractionalZeros="False" />

How to add Minimum and maximum so that i want maximum value to set to 100 and minimum based on the user selection.I dont want to edit the editior only button should be work.If i add IsReadonly=True Spin buttons visibility is hidden.So how can i mke button visibile and user should not able to edit the text.

Please help to Solve this issue....

 

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. I have been looking into your post and I believe I have already answered you here about using only the spin buttons for editing:

     

    http://ko.infragistics.com/community/forums/t/71064.aspx

     

    As for the Minimum and Maximum, I can suggest you use XamNumericEditor instead of XamMaskedEditor, since you will use it for numeric values, and add the following ValueConstraint in the Editor:

    <igEditors:XamNumericEditor.ValueConstraint>
        <igEditors:ValueConstraint MinInclusive="0" MaxInclusive="100"/>
    </igEditors:XamNumericEditor.ValueConstraint>
    

    Feel free to write me if you have further questions.

Children
No Data