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

[Solved] Change Sorting indicator

3 Answers 161 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.
Constantine
Top achievements
Rank 1
Constantine asked on 29 Nov 2010, 05:38 PM
Hi

Is there any ability to change default sorting indicator for GridView?
I.e - increase it's size or replace it with some other icon?

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 29 Nov 2010, 05:46 PM
Hi,

 You can modify the GridViewHeaderCell template with Blend to achieve this. 

Sincerely yours,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Constantine
Top achievements
Rank 1
answered on 30 Nov 2010, 05:46 PM
Hi

I'm sorry but I was unable to modify sorting indicator using Blend.
For some reasons changes were not reflected at runtime.
Could you please send me an example where sorting indicator Height and Width are increased and changed color.

Thanks in advance and waiting for  a reply
0
Accepted
Vanya Pavlova
Telerik team
answered on 01 Dec 2010, 10:42 AM
Hello Constantine,


Within the GridViewHeaderCell's template you should only change the Width and Height properties of the element named PART_SortIndicator, as it is shown below:

<Path x:Name="PART_SortIndicator" Grid.ColumnSpan="2" Data="M0,0 L1,0 2,0 3,0 4,0 5,0 5,1 4,1 4,2 3,2 3,3 2,3 2,2 1,2 1,1 0,1 0,0 z" Fill="{StaticResource GridView_SortIndicatorColor}" HorizontalAlignment="Center" Height="8" Margin="0,3,0,0" Opacity="0" RenderTransformOrigin=".5,.5" Stretch="Fill"  VerticalAlignment="Top" Width="10"............./>

Attached is a project that demonstrates this approach, feel free to modify it to meet your personal requirements.


Kind regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Constantine
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Constantine
Top achievements
Rank 1
Vanya Pavlova
Telerik team
Share this question
or