Initial Sorting

2 posts, 0 answers
  1. Sascha
    Sascha avatar
    15 posts
    Member since:
    Aug 2010

    Posted 29 Nov 2011 Link to this post

    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


  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Nov 2011 Link to this post

    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 >>

Back to Top