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

serialization issues with inherited report items

1 Answer 83 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 05 Aug 2013, 11:08 AM
Hi,
we are developing a custom report designer for end users. The designer works against the CLR API while reports are persisted as serialized trdx.

To provide our designer with additional information, we decided to extend some of the classes. While this works just fine in some cases, it breaks the serialization in others.

Working example:
public class ExtendedColumn : TableBodyColumn
{
  public string Name { get; set; }
}


Broken example:
public class ExtendedTable : Table
{
  public int HeaderHeight { get; set; }
}

While the additional property is in fact being serialized, some parts of the base class are not. In this case the table's xml node '<Corner />' remains empty and the table body's node '<Cells/>' is missing.

Is there another way to achieve the desired behavior?

Kind regards
Sebastian

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 07 Aug 2013, 08:39 AM
Hello Sebastian,

The report serializer only knows how to serialize our classes and custom classes are not supported. If you need additional info, the only thing that we can suggest is for you to serialize the meta-data separately from the report. 
 

Regards,
Elian
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
Martin
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or