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

Custom Mergfield Properties

1 Answer 63 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Boris Rogge
Top achievements
Rank 1
Boris Rogge asked on 13 Aug 2013, 07:46 AM
Dear Telerik,

I've created a custom merge field and it works fine. Now I d like to add an extra metadata property (e.g. a GUID in string rep.)
I've overwritten the CopyPropertiesFrom method to copy the extra property. It gets inserted into the xaml (when saved), however when doing a 'merge preview', the custom mergefield is copied (a new instance is created) without calling the CopyPropertiesFrom, instead it calls the CopyPropertiesFromCodeExpression method, where I cannot copy the extra meta data property.

So my question is how to create and fully implement extra properties in custom merge fields.

Kind regards

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 16 Aug 2013, 08:07 AM
Hi Boris Rogge,

Please refer to this help article where you can find detailed explanation of how to create a custom field and add a property to it.

I hope this helps!

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RichTextBox
Asked by
Boris Rogge
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or