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

Custom header on sorting

2 Answers 98 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Parul
Top achievements
Rank 1
Parul asked on 09 Jul 2011, 02:29 PM
Hi All,

I am working on WPF 4.0 and have a requirement to custom the default style on header which we get while doing sorting on RadGridView. Instead of black triangle on header top , I need that triangle at the right side of the header while sorting.

Kindly let me know how to do it.

2 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 11 Jul 2011, 08:48 AM
Hi Parul,

 

You may achieve the desired result by predefining the template of GridViewHeaderCell and accessing the Path element named PART_SortIndicator. You have to set its HorizontalAlignment to Right to achieve the desired result, please refer to the attached screen-shot.


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


Regards,
Vanya Pavlova
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Parul
Top achievements
Rank 1
answered on 11 Jul 2011, 05:50 PM
Hi vanya,

Thanks for the reply , it will be great if you send me the code for the same as I am facing some issue with the expression blend and not able to generate the template.
I have a requirement to show triangle on the middle - right side of the header.

Thanks in advance !!!!1
Tags
GridView
Asked by
Parul
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Parul
Top achievements
Rank 1
Share this question
or