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

ExpressionColumn Error

1 Answer 18 Views
GridView
This is a migrated thread and some comments may be shown as answers.
poet_byron
Top achievements
Rank 1
poet_byron asked on 12 Apr 2011, 09:38 PM
I have a gridview with 2 expression columns bound to a PagedCollectionView that is grouped by 2 columns using the grouping of paged collection view.  If I load the page, everything works fine, but when I try and load something else (i.e. go a month back and get data loaded) the expression column errors out saying it has a problem converting type string to the type of my pagedcollectionview.  I have a feeling that when you are trying to get the new values of the expression column, you are looking at the group header text within the 2nd group, rather than the data.  Here is a rough outline of what I'm trying to do

ViewModel
-------------------------------
PagedCollectionView rpt;

Constructor of ViewModel - Call Service to get report

Callback of Service - set report to returned value grouped by 2 columns returned.
--------------------------------

After clicking go back a month

Same service is called with date of 1 month prior passed.

Callback of Service - set report to returned value grouped by 2 columns returned.

This is where the error occurs saying "String cannot be converted to type MyType".

I will be trying to convert my paged collection view to a QDSVC and see how it goes.

1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 12 Apr 2011, 09:52 PM
Hello Metthew,

 Could you please prepare a small sample application demonstrating this behavior and attach it to a separate support ticket?

Regards,
Yavor Georgiev
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
poet_byron
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or