Handling One to Many relation in Mail Merge of radrichtextbox Question

2 posts, 0 answers
  1. Rizwan
    Rizwan avatar
    1 posts
    Member since:
    Aug 2012

    Posted 01 Aug 2012 Link to this post


    I have a situation where i want to handle Handling One to Many relation in Mail Merge of radrichtextbox.




    public class Employee


    public string FirstName { get; set; }  

    public string LastName { get; set; }  

    public string JobTitle { get; set; }  

    public List<Address> EmpAddress { get; set; }  



    public class Address  

    public string Addresses { get; set; }  


    How i will handle this situation in the case of Mail Merge. Where i want to show one employee with its multiple addresses in the table in the mail merge.


  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 03 Aug 2012 Link to this post

    Hi Rizwan,

    The default merge fields do not enable one-to-many relationship out of the box. However, you can implement custom merge fields as described in this forum post:  http://www.telerik.com/community/forums/wpf/richtextbox/merge-reports.aspx#1943265. There is also a demo attached to the reply, which you can download and test.

    I hope this answers your question.

    Kind regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
Back to Top