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

How to set the sort icon in Grid???

1 Answer 182 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Srinivas Dharanipragada
Top achievements
Rank 1
Srinivas Dharanipragada asked on 04 Aug 2010, 10:54 AM
How to set the sort icon in Grid???

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 04 Aug 2010, 01:23 PM
Hello Srinivas,


An easy way to change the RadGrid sort arrows is to use the SortAscImageUrl and SortDescImageUrl properties, which are set per column.

For example:
    <telerik:GridBoundColumn SortAscImageUrl="MySortAscImage.gif" SortDescImageUrl="MySortDescImage.gif" />

C# code for setting SortAscImageUrl programmatically:
protected void RadGrid1_ColumnCreated(object  sender, GridColumnCreatedEventArgs e)
{
     e.Column.SortAscImageUrl = "MySortAscImage.gif";
}


-Shinu.
Tags
General Discussions
Asked by
Srinivas Dharanipragada
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or