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

Gridview Chart Title

4 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Amy
Top achievements
Rank 1
Amy asked on 01 Jun 2011, 05:00 PM
Hi there,

I would like to create a title for my RadGridView that looks similar to the default RadChart title.  How can I do this?

Thanks,
Amy

4 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 01 Jun 2011, 07:31 PM
Hi Amy,

 

RadGridView has its own GridViewHeaderRow which is similar to the RadChart's Title. Within its header you may find separate headers for each column. If you want to remove the headers for all columns from the GridViewHeaderRow  you should edit its template in Expression Blend. There you will find the PART_DataCellsPresenter which is responsible for displaying GridViewHeaderCells. Just delete this presenter and replace it with a single TextBlock with some custom text. 



If you need any further assistance do not hesitate to contact us. 



Greetings,
Vanya Pavlova
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
Amy
Top achievements
Rank 1
answered on 02 Jun 2011, 02:25 PM
Hi Vanya,

Thank you for your reply.  However, I do not have Expression Blend.  Could you please provide an example to get me started?  I've attached an image to show what I am trying to accomplish.

Amy
0
Accepted
Vanya Pavlova
Telerik team
answered on 02 Jun 2011, 04:13 PM
Hi Amy,

 

You may achieve the desired result by predefining the template of RadGridView. 
Please find attached sample project that demonstrates how this can be achieved.


Kind regards,
Vanya Pavlova
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
Amy
Top achievements
Rank 1
answered on 02 Jun 2011, 09:14 PM
Thank you for the example Vanya.

The LinearGradientBrush was what I needed to achieve my goal.

Amy
Tags
GridView
Asked by
Amy
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Amy
Top achievements
Rank 1
Share this question
or