Hi,
I am working on an audit application where I use lot of GridViews. There are columns such as SSN, Date, accountnumbers ..etc which I use in a lot of grids. Every column is initially in readonly mode has edittrigger set to F2. For SSN I am using GridViewMaskedTextBoxColumn and defined it as below
When I write a Style as below :
and try to apply them to all the SSN columns in my grids, I get runtime errors regarding the Properties "Mask" and "MaskType" properties in the Style. They only work when I add them explicitly in the Column defiition rather than in the style. Is this an Issue with MaskedTextBoxColum
Is there any other alternative to this?
I am working on an audit application where I use lot of GridViews. There are columns such as SSN, Date, accountnumbers ..etc which I use in a lot of grids. Every column is initially in readonly mode has edittrigger set to F2. For SSN I am using GridViewMaskedTextBoxColumn and defined it as below
<
telerikGrid:GridViewMaskedTextBoxColumn
DataMemberBinding="{Binding SSN,
Mode
=
TwoWay
,
Converter={StaticResource ssnConverter}}"
Header
=
"SSN"
EditTriggers
=
"F2"
Mask
=
"###-##-####"
MaskType
=
"Standard"
/>
When I write a Style as below :
<
Style
x:Key
=
"SSN_GridViewColumn"
TargetType
=
"{x:Type telerik:GridViewMaskedTextBoxColumn}"
>
<
Setter
Property
=
"Mask"
Value
=
"###-##-####"
/>
<
Setter
Property
=
"Header"
Value
=
"SSN"
/>
<
Setter
Property
=
"MaskType"
Value
=
"Standard"
/>
<
Setter
Property
=
"EditTriggers"
Value
=
"F2"
/>
</
Style
>
and try to apply them to all the SSN columns in my grids, I get runtime errors regarding the Properties "Mask" and "MaskType" properties in the Style. They only work when I add them explicitly in the Column defiition rather than in the style. Is this an Issue with MaskedTextBoxColum
Is there any other alternative to this?