I'm working with a RadMaskedCurrencyInput control for the first time. It's bound to a SmallMoney column in a SQL Server 2008 R2 Express database, and it's hosted in a WPF DataGrid.
First question, I've removed the underlines, by changing the Placeholder property to " ". That works fine. NOw, how do I remove the thousands separator? Right now it looks a little funny, when there's something like $86.00 in the database. It looks like this: "$ , 86.00" (without the double quotes).
Second (this is more of a question concerning the interaction between the RadMaskedCurrencyInput control and the WPF DataGrid control), how many data templates do I have to specify within the DataGridTemplateColumn? This data grid needs to be able to display data, allow the user to edit the data, delete it and insert new data; basically normal CRUD operations. In order to help I'll show you what the XAML looks like right now:
Third, the AmountEarned column that is bound to, is not nullable. But $0.00 is a valid value, so how do I specify a default value of $0.00 when the user creates a new row?
First question, I've removed the underlines, by changing the Placeholder property to " ". That works fine. NOw, how do I remove the thousands separator? Right now it looks a little funny, when there's something like $86.00 in the database. It looks like this: "$ , 86.00" (without the double quotes).
Second (this is more of a question concerning the interaction between the RadMaskedCurrencyInput control and the WPF DataGrid control), how many data templates do I have to specify within the DataGridTemplateColumn? This data grid needs to be able to display data, allow the user to edit the data, delete it and insert new data; basically normal CRUD operations. In order to help I'll show you what the XAML looks like right now:
<
DataGridTemplateColumn
x:Name
=
"amountEarnedColumn"
Header
=
"Amount Earned"
Width
=
"SizeToHeader"
>
<
DataGridTemplateColumn.CellTemplate
>
<
DataTemplate
>
<
telerik:RadMaskedCurrencyInput
Value
=
"{Binding AmountEarned}"
Mask
=
"c5.2"
Placeholder
=
" "
/>
</
DataTemplate
>
</
DataGridTemplateColumn.CellTemplate
>
<
DataGridTemplateColumn.CellEditingTemplate
>
<
DataTemplate
>
<
telerik:RadMaskedCurrencyInput
Value
=
"{Binding AmountEarned}"
/>
</
DataTemplate
>
</
DataGridTemplateColumn.CellEditingTemplate
>
</
DataGridTemplateColumn
>
Third, the AmountEarned column that is bound to, is not nullable. But $0.00 is a valid value, so how do I specify a default value of $0.00 when the user creates a new row?