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

Customizing Telerik RadGridView Style

3 Answers 218 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Namir Ahmed
Top achievements
Rank 1
Namir Ahmed asked on 26 Oct 2009, 10:07 PM
Hi,

I would like to do some basic customizations to the Telerik GridView. I am using the Office_Silver theme  

1. Remove all gridlines from the Telerik GridView - including the column headers

2. Set the highlight color for the row

3. Customize the alternating background color
          Already done using the AlternateRowStyle property on RadGridView

Can someone please advise me how I can make these customizations

Thanks
Namir


            

3 Answers, 1 is accepted

Sort by
0
Kalin Milanov
Telerik team
answered on 27 Oct 2009, 08:24 AM
Hello Namir Ahmed,

I would like to guide you to Styling RadGridView in Expression Blend section in our online help. Even though it is for Silverlight 2 the principles for styling is virtually the same.

As for your specific issues:
1. To remove the grid lines you can use GridLinesVisibility="None". For the HeaderCell you will need to edit its template and remove them manually taking into account the Triggers for MouseOver and Sorted states.

2. To change the highlight color (both on mouse over and selection) you will need to edit the template of the Row and change the color of an element called BackgroundRectangle.

All the best,
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
Namir Ahmed
Top achievements
Rank 1
answered on 27 Oct 2009, 05:24 PM
Hi Kalin,

Thanks for your response and the useful resources.

(1)

I am having a small issue with trying to style the RadGridView using Expression Blend & the reference link you sent

I am able to add the RadGridView control to Blend but when I try to edit a copy of the Control Template I get the following exception:
    
        Type reference cannot find public type named 'RadGridView'

Environment:
   MS Expression Blend 2.0.1523
   Telerik RadControls WPF Q2 2009

Do you have any guidance for this ?

(2) How do I remove the MouseOver GridViewCell highlighting ?
  

Thanks,
Namir

0
Kalin Milanov
Telerik team
answered on 02 Nov 2009, 07:21 AM
Hello Namir Ahmed,

I am sending you a sample application which removes the MouseOver effect from the GridViewRow.
I also had troubles with Blend while preparing the sample. We will be investigating those and improve on the blend support for the future.

All the best,
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.
Tags
GridView
Asked by
Namir Ahmed
Top achievements
Rank 1
Answers by
Kalin Milanov
Telerik team
Namir Ahmed
Top achievements
Rank 1
Share this question
or