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

Multicolumn Sort with Custom Sort

1 Answer 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kevin White
Top achievements
Rank 2
Kevin White asked on 20 Apr 2009, 05:13 PM

I am programmatically adding Sort Expressions to my RadGridViewafter I populate it with data. However, the grid is having problems sorting onmore than 2 columns. Sorting by the first two acts as expected, but once athird expression is added to the collection, it takes precedence as if it werethe 2nd place Sort Expression. The SortExpressions collection is still intactand has the expressions in the order in which I'd like them sorted, but it isnot working as expected at all.

In essence, once the first two columns are chosen to be sortedby, they should stay "frozen" while the third column sorts itselfbased on the previous two sorts. However, the third column not only sortsitself, but is rearranging some of the rows previously sorted by the secondsort expression.

This also happens when using the client side to select more than2 columns to sort by.

Some background info on my project:

- Grid is Unbound, data population happens programmatically.

- The above issue seems to only happen with columns that use acustom sort operation.

- I am using Telerik Winform versions 8.2.0.0 (Willupdating to latest will fix this?)

- Application is developed and run in Visual Studio 2008 with C#

** I will/can provide snippets of code, but I will not give you my whole application, that is beyond my allowance and unnecessary.

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 23 Apr 2009, 04:48 PM
Hi Kevin White,

Please try the latest version of RadGridView for this scenario.

If you continue to have an issue, please open a new support ticket and send us a sample project which reproduces it. Thank you in advance.

Greetings,
Julian Benkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Kevin White
Top achievements
Rank 2
Answers by
Julian Benkov
Telerik team
Share this question
or