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

[Solved] Sorting on property.property

1 Answer 11 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kevin
Top achievements
Rank 1
Kevin asked on 01 Sep 2010, 12:10 AM
Hi,

I have a Grid I'm binding to an IENumerable of <A> which is described as

class A
{
     string Name;
     B Assessment;
}

class B
{
    int Score;
}
And the Grid columns are

bound(i => i.Name);
bound(i => i.Assessment.Score);

If I try and sort on the Assessment.Score I get an exception thrown (Invalid property or field - 'Assessment' for type: A)

Is there a way around this?

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 01 Sep 2010, 07:15 AM
Hello Kevin,

This should work as expected. I am sending you a sample project. What is different in your case?

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Kevin
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or