This is a suggestion for how the RadGridView could be improved - or maybe there is already a good way to achieve my goal.
<System:Int32 x:Key="readOnlyDateTimeWidth">125</System:Int32> |
Then you could use this on various RadGridViews to define columns such as:
<TelerikGrid:GridViewDataColumn DataMemberBinding="{Binding Details.LastUpdate}" Header="Last Update" DataFormatString="{}{0:g}" IsReadOnly="True" Width="{StaticResource readOnlyDateTimeWidth}"/> |
It would also be useful to be able to databind other properties such as DataFormatString, etc.
Maybe another way to do this would be to add a Style property to the RadGridViewColumn that would allow various properties to be set, then you could do something like this:
<TelerikGrid:GridViewDataColumn DataMemberBinding="{Binding Details.LastUpdate}" Header="Last Update" Style="{StaticResource readOnlyDateTimeColumnStyle}"/> |
This would allow the setting of multiple properties to be wrapped up in a style which could be consistently applied across many columns.