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

[Solved] Silverlight Q32K9 - Style Group Header

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Richard Grimmer
Top achievements
Rank 1
Richard Grimmer asked on 10 Nov 2009, 11:49 AM
Don't seem to be able to crack this one

Have a grid grouped by "Type" and then "Name"....I'd like to style each of these group headers slightly differently (apply a gradient, change foreground colour an add a link to headers at the Name level...

Any ideas as to how to go about doing this? Seems to be impossible at this stage (but then I can't find how to style ANY group headers!)

2 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 13 Nov 2009, 10:05 AM
Hello Richard Grimmer,

What you will need to do is edit the template of the GroupRow (you can easily get the template using Blend). Once you extract it you can bing the backgrounds of the elements you need to the Group.HasSubgroups property and apply a converter which holds your custom colors and gradients.

Attached I am sending you a sample which demos just that.
I am most hopeful that this is what you were looking for.

Sincerely yours,
Kalin Milanov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Richard Grimmer
Top achievements
Rank 1
answered on 13 Nov 2009, 11:46 AM
Many thanks for the reply and demo - it seems that with a little hacking around, I shold be able to get what I need out of it...

Again, many thanks, and compliments o the quality of the new release (Well, aside from the corrupted chm files!)
Tags
GridView
Asked by
Richard Grimmer
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Richard Grimmer
Top achievements
Rank 1
Share this question
or