How to modify the drop down control when clicking the 'Insert Merge Field' button?

2 posts, 1 answers
  1. Ken
    Ken avatar
    3 posts
    Member since:
    Dec 2009

    Posted 30 May 2012 Link to this post


    In the siverlight RadRichTextBox demo for Merge Field, when clicking the 'Insert Merge Field' button, a drop down list filled with all the merge fields will appear. Is there an easy way to modify this drop down like adding a scroll bar, changing the width... or pop up a dialog with all the fields just like the one in MS Word?

    I know I can unbind the binding of the command 'InsertMergeFieldEmptyCommand' in the xaml and implement my own method but just wondering if there's some other easy ways.


    - Ken
  2. Answer
    Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 31 May 2012 Link to this post

    Hi Ken,

    The best way to implement a custom look of the UI that inserts merge fields is indeed to remove the binding to the InsertMergeFieldEmptyCommand and handle the Click event of the button.

    You can refer to this post which illustrates the approach. It should get you started with the task.

    Kind regards,
    Iva Toteva
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top