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

Style Problem on top left of RadGridView. I'm using styles and templates, cant locate the bugger

11 Answers 188 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Stephen Pascoe
Top achievements
Rank 1
Stephen Pascoe asked on 27 Jul 2010, 01:19 PM
I quite literally would rather endure pulling teeth than waste another hour on this crap. (already spent 8 hours. almost half my coding time so far on this project!!)
Here's the deal...

I have been trying everything to style the attached SL4 radgridview to be a simple two tone brown colour grid.
I've tried dragging dummy controls on the screen, adding them as templates / styles etc.. as per telerik documentation...i have hundreds of ControlBackground's and other style attributes now in my app.xaml and so far all i've been able to achieve is what is in the screen.

What am i missing to kill the grey strip on the left and the black gradient on the top left to the left of the Season column (these are both visible because i am grouping on the Season column).


I just cant believe it is this difficult to style a datagrid. I've been using silverlight since 1.0 and this is just ridiculous guys!

Now that i've given you heaps prove me wrong and show me how easy it is to fix this. Please.

11 Answers, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 27 Jul 2010, 01:32 PM
Hello Stephen Pascoe,

 The grey strip you wish to remove is a GridViewIndentCell object. You need to create a global implicit style that sets its background and border brush. The black gradient to the left of the Season column is a GridViewHeaderIndentCell object, which you also need to style. And just in case you wish to restyle the cell with the grouped column's name in the 'Grouped by' panel, that object is a GridViewGroupPanelCell, which, of course, also needs a style.

 I'm sorry it has been so inconvenient for you to restyle our RadGridView control. Please don't hesitate to contact us anytime you need assistance.

Regards,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
iWebs
Top achievements
Rank 1
answered on 28 Jul 2010, 01:54 AM
Kind of annoying that there are hundreds of styles needed to just put some color on a grid.

How about a sample project that uses most of the styles to assist with this beast. What Steve is doing is really not that advanced, yet there are gazillions of individual styles referenced to get a simple 2 color grid.

Something is needed anyway!
0
Stephen Pascoe
Top achievements
Rank 1
answered on 28 Jul 2010, 02:14 AM
So i have dragged on to the art board GridViewIndentCell  and GridViewHeaderIndentCell objects.
I then clicked from the top menu Object, then Edit Style -> create a copy.

I then added it to the Application (app.xaml) where all the other styles are.

I then remove the two controls from the artboard as i dont need them anymore (because i've created my styles).



Now, how or where do i go to reference these styles in my actual gridview control?

...yes a sample project or 5 would be helpful.
0
Yavor Georgiev
Telerik team
answered on 28 Jul 2010, 11:27 AM
Hi Stephen Pascoe,

 By the end of the week we'll post a post on our company blog with a sample project restyling the whole RadGridView control.

Regards,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Stephen Pascoe
Top achievements
Rank 1
answered on 02 Aug 2010, 02:57 AM
Havent seen any blog posts yet. Could you please have a go at answering my issue?

"i have dragged on to the art board GridViewIndentCell  and GridViewHeaderIndentCell objects. Then clicked from the top menu Object, then Edit Style -> create a copy.
Then added it to the Application (app.xaml) where all the other styles are.
Then removed the two controls from the artboard as i dont need them anymore (because i've created my styles).

Now, how or where do i go to reference these styles in my actual gridview control?"
0
Stephen Pascoe
Top achievements
Rank 1
answered on 03 Aug 2010, 03:54 AM
Hey there, just hoping to get a response back soon. Got this app due next week.
0
Stephen Pascoe
Top achievements
Rank 1
answered on 04 Aug 2010, 07:25 AM
Really starting to need this info now. Please get back to me.
0
iWebs
Top achievements
Rank 1
answered on 04 Aug 2010, 07:26 AM
You said " By the end of the week we'll post a post on our company blog with a sample project restyling the whole RadGridView control."

I cannot find this blog. Can you please advise where it is?

Regards: http://www.interactivewebs.com - DotNetNuke Modules

0
Accepted
Kalin Milanov
Telerik team
answered on 04 Aug 2010, 08:11 AM
Hi iWebs,

There are four elements responsible for indentation of the grid. 

- Header Indent (the green one)
- Indent (red one)
- FooterIndent (yellow one)
- GroupFooterIndent (blue one)

The styles and templates for those are defined in the App.xaml and are applied as implicit styles as you initially tried to do. 

I hope you will find the sample useful.

Sincerely yours,
Kalin Milanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
iWebs
Top achievements
Rank 1
answered on 04 Aug 2010, 08:14 AM
Thanks for the reply...

Regards: http://www.interactivewebs.com  - DotNetNuke Modules
0
Stephen Pascoe
Top achievements
Rank 1
answered on 04 Aug 2010, 12:34 PM
Thank you for getting back to us. That project has been a big help and i'm all set now. Thanks again
Tags
GridView
Asked by
Stephen Pascoe
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
iWebs
Top achievements
Rank 1
Stephen Pascoe
Top achievements
Rank 1
Kalin Milanov
Telerik team
Share this question
or