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

[Solved] Sorting on non-visible data

1 Answer 112 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Christoffer
Top achievements
Rank 1
Christoffer asked on 28 May 2008, 06:57 AM
Hi!

I have a grid that is migrated from RadGrid classic to RadGrid asp.net ajax where I want to use a dataset with (among others) three columns that are related but of which I only want to show one in the grid, but I want to sort the grid on the other two.

The columns are RatingCode, RatingText and RatingAggregate. The rows that have a RatingCode don't have a RatingText and vice versa. The RatingAggregate is the data I want to show, but I want that column to use SortExpression="RatingText asc, RatingCode asc", since the RatingAggregate column has mixed data and can't be sorted correctly (i.e. 1 before 10 etc).

The column is a GridTemplateColumn.

This worked perfectly in radgrid classic, but when I do it in RadGrid ASP.NET AJAX i get the exception IndexOutOfRangeException: Can't find the column RatingCode.

How should I do this in RadGrid ASP.NET AJAX?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 May 2008, 10:34 AM
Hi,

Go through the following online demo which shows Sorting with RadGrid for asp.net AJAX.
Advanced sorting

Princy.
Tags
Grid
Asked by
Christoffer
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or