Nested Mail merge

2 posts, 0 answers
  1. Xiao
    Xiao avatar
    9 posts
    Member since:
    Jul 2011

    Posted 09 Nov 2012 Link to this post

    Hello Telerik team,

    Is RadDocument currently supports Nested mail merge fields?

    For example: 

    { IF { MERGEFIELD "First_Name" } = "John" "Is John" "Not John" }

    I won't use the the data source in the RadRichTextBox to replace the merge fields in RadDocument.
    Instead, I will write my own logic to replace them. So what I'm curious is that whether RadDocument can
    understand nested fields.

    If it is not supported, am I able to do some customization to make it work?

  2. Boby
    Boby avatar
    763 posts

    Posted 12 Nov 2012 Link to this post

    Hi Xiao,
    RadRichTextBox's document model supports nested fields, however conditional fields ('IF') are not supported for now.
    Keep in mind that replacing the fields directly in the document can be tricky sometimes. Instead, you could try to extend the default merge fields, as described in this forum thread. Please find attached another sample, demonstrating custom merge field which evaluates conditionally depending on a property in the data source. The demo is for Silverlight 4, but should work for Silvelright 5 as well.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top