This is a migrated thread and some comments may be shown as answers.

styling radgridview

3 Answers 109 Views
GridView
This is a migrated thread and some comments may be shown as answers.
marc
Top achievements
Rank 1
marc asked on 29 Sep 2011, 09:50 AM
I'm having quite a hard time getting the styling done, it seems like I'm experimenting rather than designing. I tried using blend but go absolutely nowhere, now I am writing the styling in xaml. To override the styling I am using following code:

RowStyle="{DynamicResource TopGridRow}"
AlternateRowStyle="{DynamicResource TopGridAlternateRow}"
HeaderRowStyle="{DynamicResource TopGridHeaderRow}"
VerticalGridLinesBrush="{DynamicResource TopGridVerticalBrush}"
HorizontalGridLinesBrush="{DynamicResource TopGridHorizontalBrush}"
telerik:Theming.Theme="Vista"

my current result looks like this:
http://dl.dropbox.com/u/11491365/gridviewWhite2.JPG

following problems:
1. I dont know how to adjust the style for the rectangle at the top-left
2. How do I change the gray padding around the hierarchical element
3. I applied the theme Vista application wide, but it is only being applied to the radgridview in the lower hierarchy, thats why i am setting the Theme on the control itself again
4. Is there a better approach to this?
5. What on earth is that dark line between JobID and Auflage (you can drag it around for reasons unknown to me. has a gradient on it)

3 Answers, 1 is accepted

Sort by
0
marc
Top achievements
Rank 1
answered on 29 Sep 2011, 02:45 PM
I just came accross http://stylebuilder.telerik.com
is there something like this that will work with wpf?
0
Ivan Ivanov
Telerik team
answered on 04 Oct 2011, 08:05 AM
Hello Marc,

I have prepared an example project, retemplating the elements shown on the attached image. I have applied some comments in order to help you navigate through the xaml. As for points #3 and #4, I presume that you have set an Application theme after your main RadGridView has been loaded in the visual tree. The recommended approach is demonstrated in my project. The element that you have mentioned in #5 is actually the frozen columns separator. You may refer to this article for some more extensive information on this feature.

Best wishes,
Ivan Ivanov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
marc
Top achievements
Rank 1
answered on 07 Oct 2011, 03:29 PM
thank you ivan,
this looks very promising!
changing just 2 colors does seem a little complicated, but I am very thankful for the time you invested to help me. I am sure I can solve my issues thanks to this.
you were spot on with the points 3 and 5, I have already solved them now.
4 was more a general question, but I gather this really is a common approach to wpf styling.

thanks a bunch!
Tags
GridView
Asked by
marc
Top achievements
Rank 1
Answers by
marc
Top achievements
Rank 1
Ivan Ivanov
Telerik team
Share this question
or