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

Radgrid Column's name problem when sorting

1 Answer 496 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 29 Dec 2009, 05:54 PM
Hello All,
I have a ordinary RadGrid which has Sorting option set.
Columns in the RadGrid are named like this: Class1.Class2.Property1
because I use classes inside another ones in my Collections.

Everything works perfectly expect sorting.

When I set GridSortExpression in codebehind or in aspx page, setting fails if
field's name have a point character (.)
Code below fails:

  GridSortExpression expression = new GridSortExpression();
  expression.FieldName = "Class1.Class2.Property1"; // This fails!
  expression.SetSortOrder( ... );

....

Is there another kind of naming syntax for SortColumns or how should I get it working?
This is little bit odd because RadGrid data can be show, edit etc although names have point
characters (nested classes).

Br,

Michael

1 Answer, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 30 Dec 2009, 07:58 AM
Hello Mike,

I have prepared a small sample (attached to this post) that demonstrates your scenario. Could you take a look at it and if the problem persists, open up a formal support ticker sending us a runnable test project so that we can debug it and get back to your with more concrete information on the issue.

Greetings,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Mike
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Share this question
or