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

Aggregate functions do not work for ICustomTypeDescriptor

1 Answer 65 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mehmet Ali Kayaoglu
Top achievements
Rank 1
Mehmet Ali Kayaoglu asked on 24 Apr 2009, 09:12 AM
Hello,
I have a collection of a class implementing ICustomTypeDescriptor bound to WPF GridView. Basic functionalities such as viewing, sorting, grouping and filtering works fine. But when I try to add an AggregateFunction to the groups  I receive a null reference exception. As far as I can see, the Properties collection of the RecordManager for the grid does not contain the property descriptions from the ICustomTypeDescriptor, Is there a solution or workaround for this situation?

Additionally, I would expect TypeDescriptionProvider attribute on a class would perform similar as implementing ICustomTypeDescriptor interface for the class. The Microsfot ListView control, for example, can handle this situation.

Thanks,

Mehmet Ali

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 27 Apr 2009, 04:36 PM
Hi Mehmet Ali Kayaoglu,

Please excuse me for my late reply.

We have found a glitch when data binding to an IEnumerable that contains instances implementing ICustomTypeDescriptor. We have addressed it and it is currently undergoing QA.

I have prepared a custom build for you. I have also prepared a small sample project uses these binaries and mimics your case. You can find these DLL's in the Binaries folder of the project I have attached. Can you please verify that these latest binaries solve the issues you are faced with.

If that is not the case, please let us know.

I have updated your account with Telerik points for helping us identify the problem. Please, accept our apologies for any inconvenience caused.

All the best,
Ross
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Mehmet Ali Kayaoglu
Top achievements
Rank 1
Answers by
Rossen Hristov
Telerik team
Share this question
or