Importing xaml for mail merge template bug

2 posts, 0 answers
  1. Minh
    Minh avatar
    43 posts
    Member since:
    May 2014

    Posted 26 Feb Link to this post

    Hi, at the moment I create a document using richtextbox with some merge fields. I then save the document as a .xaml so the file can be reused over and over. I convert the file from my database and import it using the code below


    private void OpenTemplate()
       if (Attachments.SelectedItem != null)
         var template = (FilesDTO) Attachments.SelectedItem;
         RadDocument result;
         var UnitOfWork = new UnitOfWork();
         XamlFormatProvider provider = new XamlFormatProvider();
         result = provider.Import(UnitOfWork.MailTemplateRepository.GetById(template.Id).FileXAML);
         radRichTextBox.Document = result;


     After opening the file, I then populate the

    radRichTextBox.Document.MailMergeDataSource.ItemsSource = UniversalCollection; 

    When loading a .xaml document, the mailing tab buttons behave weird. If I were to press any button [show all field codes, preview result, previous, next] it will jump to the Home tab instead of maintaining on the mailings tab. 


    It works completely fine if I don't open a xaml document. Am I missing something upon importing? 



  2. Svetoslav
    Svetoslav avatar
    55 posts

    Posted 02 Mar Link to this post

    Hello Minh,

    Thank you for contacting us.

    We are unaware of a similar issue and it is hard to determine what may cause it from the provided information. I tried using XAML file as a template for mail merge in RadRichTextBox, but it seems to work as expected.

    The best way to approach such a problem is to replicate this behavior on our side and analyze the roots of the issue. Therefore, I would ask you to send us an isolated sample project that demonstrates the problem. Please, have in mind that in the public forum it is allowed to attach only images and you may need to open a support ticket, which allows attachments of zipped files.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top