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

ReSetting GridView Context on a grid with FIlter or Sort columns set throws error

1 Answer 30 Views
GridView
This is a migrated thread and some comments may be shown as answers.
anoop c
Top achievements
Rank 1
anoop c asked on 13 Jul 2010, 01:19 PM
I have a radgridview which I am trying to reset. If I have used the Filter or Sort on that grid then it throws an error from PropertyChanged event for the datacontext.
Unhandled error in Silverlight application
"Invalid property or field <Column X> for type :Object at Telerik.Windows.Data.Expressions.MemberAccessTokenExtensions.CreateMemberAccessExpression(IMemberAccessToken token, Expression instance ) .. (then rest of the stacktrace)

Somehow it is not taking the actual class type which is assigned as the datacontext but using the object type and trying to cast the field name from it.

Does anyone came across this bug before?

What I need, 

    There is a grid which currently have some filter expressions and/or sort expressions. I need to reset this by simply changing the data context again. I do not want to go and remove the filter and sort criterias explicitely first.

Thanks
Anoop

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 14 Jul 2010, 11:47 AM
Hi anoop c,

We have tried to reproduce this, but unfortunately we could not.

Can you please open a separate support ticket and attach a sample project that reproduces this behavior. We will then debug and investigate what is going on.

Thanks in advance.

Regards,
Ross
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
GridView
Asked by
anoop c
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or