This question is locked. New answers and comments are not allowed.
I have a radGrid with multiple columns, one of which is a CheckBoxColumn called "Adjustment".
If the Adjustment field for a row in the Grid is False (unchecked), then another column named "Rate" is set to be ReadOnly. THis is done in the XAML file using a custom converter...
This is working perfectly.
However, if the Rate column is ReadOnly (Adjustment is False) the PastingCellClipboardContent Event does not fire for the Rate column.
I still need to paste the Rate value in from the Excel data which is in the clipboard (for example $34.50), but it is bypassing this field if the Cell is ReadOnly. It is instead setting the field to $0.00.
Couldn't this event still fire even if the field is ReadOnly in order to initialize the field with a default value, or is there some other way I can have it populated into the field, or even another way to set the field to ReadOnly after it has been setup with the default value?
If the Adjustment field for a row in the Grid is False (unchecked), then another column named "Rate" is set to be ReadOnly. THis is done in the XAML file using a custom converter...
<UserControl.Resources>
<converter:InvertBooleanConverter x:Key="InvertBooleanConverter" />
</UserControl.Resources>
...
<telerik:GridViewDataColumn Header="Rate" DataMemberBinding="{Binding Rate, Mode=TwoWay, ValidatesOnExceptions=True, StringFormat=\{0:c\}}" IsReadOnlyBinding="{Binding Adjustment, Converter={StaticResource InvertBooleanConverter}}" />This is working perfectly.
However, if the Rate column is ReadOnly (Adjustment is False) the PastingCellClipboardContent Event does not fire for the Rate column.
I still need to paste the Rate value in from the Excel data which is in the clipboard (for example $34.50), but it is bypassing this field if the Cell is ReadOnly. It is instead setting the field to $0.00.
Couldn't this event still fire even if the field is ReadOnly in order to initialize the field with a default value, or is there some other way I can have it populated into the field, or even another way to set the field to ReadOnly after it has been setup with the default value?