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

GroupByExpressions and non-datatable objects

1 Answer 57 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Tim
Top achievements
Rank 1
Tim asked on 20 Jun 2012, 02:30 PM
Hello,

I have a radgrid that a populate using the ItemDataBound event with my own Object (called 'ConfigurationValueObject'). Mapping its properties and displaying the grid is no problem, however I want to use the GroupByExpressions property to group all data using the property 'Category' in my object. When I add the code:

<GroupByExpressions>
    <telerik:GridGroupByExpression>
        <GroupByFields>
            <telerik:GridGroupByField FieldName="Category" />
        </GroupByFields>
    </telerik:GridGroupByExpression>                           
</GroupByExpressions>

I receive the following error:

No property or field 'Category' exists in type 'ConfigurationValueObject'


But I know this object does have this (public) property. What I am doing wrong?

1 Answer, 1 is accepted

Sort by
0
Tim
Top achievements
Rank 1
answered on 21 Jun 2012, 02:39 PM
Nevermind it was an error on my part.
Tags
Grid
Asked by
Tim
Top achievements
Rank 1
Answers by
Tim
Top achievements
Rank 1
Share this question
or