This is a migrated thread and some comments may be shown as answers.

[Solved] RadNumericBox properties in DataGridNumericalColumn

1 Answer 133 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Patrick
Top achievements
Rank 1
Patrick asked on 12 Jan 2014, 10:26 PM

Hi,

I use a numeric column in a datagrid (DataGridNumericalColumn) and it is said in the documentation
that it uses the control RadNumericBox in edit mode.

- How to define the properties of RadNumericBox (minimum, maximum, SmallChange ...) in the column definition ?
- Is it possible to restrict the input to integers.

Thanks a lot for your response.

Note: I found another problem with using the numeric column. If I set the PropertyName property with a nullable type in my ViewModel, I have the binding error below when I change the value of the column.

Error: Cannot save value from target back to source. BindingExpression: Path='Numero' DataItem='Resultat'; target element is 'Telerik.UI.Xaml.Controls.Input.RadNumericBox' (Name='null'); target property is 'Value' (type 'Object').

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 14 Jan 2014, 09:40 AM
Hello Patrick,

The DataGridNumericalColumn handles the edit mode internally and it is not possible to configure the RadNumericBox that represents it. If you wish to have a customized RadNumericBox you can create a DataGridTemplateColumn.
As I was unable to reproduce this error, could you please send us a sample project that reproduces it?. Also, could you please clarify what version of our controls do you use - 8.0 or 8.1?

I am looking forward to your reply.

Regards,
Ivaylo Gergov
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Grid for XAML
Asked by
Patrick
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or