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

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

1 Answer 67 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ken
Top achievements
Rank 1
Ken asked on 30 May 2012, 06:40 PM
Hi, 

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.

Thanks,

- Ken

1 Answer, 1 is accepted

Sort by
0
Accepted
Iva Toteva
Telerik team
answered on 31 May 2012, 02:47 PM
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 >>

Tags
RichTextBox
Asked by
Ken
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or