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

Default Sort Arrow

2 Answers 83 Views
GridView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 09 Jun 2008, 05:21 PM
Hi,

I'm trying to set a default sort on a telerik gridview (Q2 2007)

BindingList<Temp> tempList = new BindingList<Temp>(); 
int j = 0; 
for (int i = 1000; i > 0; i--) 
     Temp temp = new Temp(); 
 
     temp.Temp1 = i + " descending"
     temp.Temp2 = j + " ascending"
     tempList.Add(temp); 
     j ++; 
 
             
radGridView1.MasterGridViewTemplate 
    .SortExpressions.Add("Temp1", RadSortOrder.Ascending); 
 
bindingSource1.DataSource = tempList; 

The sort appears to work, however, the arrow to indicate sorting is does not show.  Is there something that I can do to add this, or is the functionality non-existent?

Thanks,

David


2 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 13 Jun 2008, 08:32 AM
Hi David,

Thank you for contacting me.

I cannot confirm that the sorting arrow is not shown. When I tested your scenario locally with version Q2 2007 (v.4.0.0.0) it behaved as expected - the arrows were shown pointing in the appropriate direction. I am attaching a sample project which demonstrates this.

If you have additional questions, do not hesitate to contact me.

Sincerely yours,
Nikolay
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
David
Top achievements
Rank 1
answered on 13 Jun 2008, 03:44 PM
Thanks,

I have found my problem based on your solution.  I am manually creating columns and incorrectly named the columns.

Thanks,

David
Tags
GridView
Asked by
David
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
David
Top achievements
Rank 1
Share this question
or