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

Initial Sorting

1 Answer 14 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Sascha
Top achievements
Rank 1
Sascha asked on 29 Nov 2011, 07:06 PM
Hello,

the following code worked fine with version 2011Q1 SP 1 Controls (2011.1.419.1040). The Grid shows the initial Sortindicator on the right column.

VirtualQueryableCollectionView<object> Data = new VirtualQueryableCollectionView<object>();
                SortDescriptor sd = new SortDescriptor();
                sd.Member = "RWERT"; // sortcolumn;
                if (SortOrder == true)
                {
                    sd.SortDirection = ListSortDirection.Descending;
                }
                Data.SortDescriptors.Add(sd);

Data is bound to a gridview with columns that have the sortmember property filled.

Now we have switched to 2011 Q3 and the Gridview shows no initial sortindicator, you have to click on a columns header to see a sortinicator. Same behavior with 2011Q2. 
Is this a bug, or do I have to change something in my code to make it work again?

Greetings,
Sascha


1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 30 Nov 2011, 07:40 AM
Hello,

 You can use ColumnSortDescriptor instead. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Sascha
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or