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

[Solved] How to format a header cell border?

5 Answers 337 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.
Chris
Top achievements
Rank 1
Chris asked on 04 Oct 2010, 03:15 PM
Hello Guys,

after wasting about an hour in trying to format a header cell border i would like to ask if you have any ideas?

Attached you will find a little image which exactly points the border that i mean.

I would like to delete the whole small black border in my header cell or paint it in the color as the background is.

Thanks in advance.

5 Answers, 1 is accepted

Sort by
0
Chris
Top achievements
Rank 1
answered on 04 Oct 2010, 03:34 PM
Hey again,

there is another picture for better understanding.
0
Vanya Pavlova
Telerik team
answered on 07 Oct 2010, 10:05 AM
Hi Chris,

If you take a look at the template of the GridViewHeaderCell you can see that there are two different borders that are used HeaderInnerBorder and HeaderOuterBorder which you can manipulate in the way you need.

I am attaching an example that demonstrates how  to manipulate these borders.

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
Chris
Top achievements
Rank 1
answered on 12 Oct 2010, 01:49 PM
Hey Vanya,

your solution worked very well for me. I didn`t noticed that there is an option to manipulate the borders.

Thank you very much.

0
st
Top achievements
Rank 1
answered on 01 Mar 2011, 12:52 PM
Hi guys,

I have the same problem Chris had.
I was copying Vanyas code and visualy it was working fine.

Later on i discovered some problems with this template.

As soon as I set this template for GridViewHeaderCell
I cannot use filter on columns wich are not displayed (not in the visual part of GridView) on load.

I just scroll to these columns and no matter which type these
columns have the silverlight application will crash without any exception when i click
on a filter to show the filterpanel.

Unfortunatly i cannot change the headercell-borders without changing
the template.

This means right now i know 2 solutions for this problem:
1  Leaving borders on these cells - OR
2  Disabling filtering at all.

Both solutions are not acceptable.
 

Greetings sts
0
Vanya Pavlova
Telerik team
answered on 02 Mar 2011, 01:16 PM
Hi St,

May you please send us a sample application via support ticket where we can see how this template is used in your custom scenario? Indeed we had some issues with styles targeted at GridViewHeaderCell, but they have already been fixed. Any additional information about the grid version you use will be highly appreciated as well.

Best wishes,
Vanya Pavlova
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
GridView
Asked by
Chris
Top achievements
Rank 1
Answers by
Chris
Top achievements
Rank 1
Vanya Pavlova
Telerik team
st
Top achievements
Rank 1
Share this question
or