This question is locked. New answers and comments are not allowed.
Hi,
I'm having an issue with Q2 2010 Silverlight controls. I'm using the incredibly beautiful Windows 7 theme for my RadGridView, but there is some customization I'd like to add to my Grid. For example, I want the minimum height of my GridViewRows to be 30. This is how I thought I could tackle the issue:
Truth be told, when I use RowStyle="{StaticResource GridViewRowStyle}" it sets my minimum row height to 30, but it gets rid of the custom theming to the control. I added <Setter Property="telerik:Styling.Theme" Value="Windows7" /> (or whatever the correct variant is, I got rid of it in my code so this goes by memory) and I was still getting an orange RowSelect color, instead of the default blue. Do I need to completely redefine the entire theme just to get a minium row size?
Another issue I was having was trying to set a UserResource for common occurances for each column. All of my columns share the following properties:
I can't figure out where to apply this. I've been trying <telerik:GridViewColumn CellStyle="{StaticResource GridViewColumnStyle}"> but that literally kills my Silverlight application.
Also, when I use <telerik:RadGridView Style={StaticResource ...} > it won't apply custom properties for RowIndicatorVisibility and CanUserFreezeColumns.
Let me also explain that this is my first real Silverlight project and I don't know the complexities and nuances of each Silverlight control. Is there anyway to do what I'd like to do with pure XAML, or am I going to need to do is programmatically? Thanks for any and all help.
I'm having an issue with Q2 2010 Silverlight controls. I'm using the incredibly beautiful Windows 7 theme for my RadGridView, but there is some customization I'd like to add to my Grid. For example, I want the minimum height of my GridViewRows to be 30. This is how I thought I could tackle the issue:
<
Style
x:Key
=
"GridViewRowStyle"
TargetType
=
"telerik:GridViewRow"
>
<
Setter
Property
=
"MinHeight"
Value
=
"30"
/>
</
Style
>
Truth be told, when I use RowStyle="{StaticResource GridViewRowStyle}" it sets my minimum row height to 30, but it gets rid of the custom theming to the control. I added <Setter Property="telerik:Styling.Theme" Value="Windows7" /> (or whatever the correct variant is, I got rid of it in my code so this goes by memory) and I was still getting an orange RowSelect color, instead of the default blue. Do I need to completely redefine the entire theme just to get a minium row size?
Another issue I was having was trying to set a UserResource for common occurances for each column. All of my columns share the following properties:
<
Style
x:Key
=
"GridViewColumnStyle"
x:TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"HeaderTextAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"IsCustomSortingEnabled"
Value
=
"True"
/>
<
Setter
Property
=
"IsReadOnly"
Value
=
"True"
/>
<
Setter
Property
=
"TextWrapping"
Value
=
"Wrap"
/>
</
Style
>
I can't figure out where to apply this. I've been trying <telerik:GridViewColumn CellStyle="{StaticResource GridViewColumnStyle}"> but that literally kills my Silverlight application.
Also, when I use <telerik:RadGridView Style={StaticResource ...} > it won't apply custom properties for RowIndicatorVisibility and CanUserFreezeColumns.
Let me also explain that this is my first real Silverlight project and I don't know the complexities and nuances of each Silverlight control. Is there anyway to do what I'd like to do with pure XAML, or am I going to need to do is programmatically? Thanks for any and all help.