DataGridNumericalColumn cannot set Minimum and Maximum Value

3 posts, 1 answers
  1. Joshua
    Joshua avatar
    5 posts
    Member since:
    Aug 2016

    Posted 12 Oct Link to this post

    In my grid data column I cannot set the minimum and maximum value. I thought it works like the RadNumericBox.

  2. Answer
    Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    138 posts

    Posted 13 Oct Link to this post

    Hi Joshua,

    Each column type has an underlying editor, you can find out exactly which editor is used in the documentation by checking the column's documentation page (look on the left here to see all the column types).

    As you suspected, the NumericalColumn does indeed use a RadNumericBox for it's editor. Therefore, you can just set the Minimum and Maximum properties for the RadNumericBox.

    To access a column's editor, you use the CellEditorStyle and set the style's target type. Here is how to do it for a NumericalColumn and set the Minimum and Maximum value for the editor.

    <grid:DataGridNumericalColumn PropertyName="Gpa" Header="GPA">
        <grid:DataGridNumericalColumn.CellEditorStyle>
                            <Style TargetType="input:RadNumericBox">
                                <Setter Property="Minimum"
                                        Value="0"/>
                                <Setter Property="Maximum"
                                        Value="4" />
                            </Style>
        </grid:DataGridNumericalColumn.CellEditorStyle>
    </grid:DataGridNumericalColumn>


    Please let us know if you have any further questions or concerns. Thank you for contacting Support and for choosing Telerik by Progress.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft banner
  4. Joshua
    Joshua avatar
    5 posts
    Member since:
    Aug 2016

    Posted 30 Nov in reply to Lance | Tech Support Engineer, Sr. Link to this post

    Thanks! It worked.
Back to Top