Hi,
The scenerio we are working on:
The problem is, when User B opens the document, application does not have the User A's MergeFieldSource. So when application merge fields, it updates both "Subject" and "Signed" MergeFields.
I've tried couple of solutions, one with RadRichTextBox.MergeFieldToStringConverting event and one with inheriting MergeField.
In RadRichTextBox.MergeFieldToStringConverting solution, MergeFieldToStringConvertingEventArgs doesn't have the old/original value (before merging). If it was, I could pass the old value to the "Subject" MergeField when User B updates the document.
In CustomField implementation, I could have find a solution, if there were a functionality like; when protected override DocumentFragment GetResultFragment() method returns null, corresponding MergeField does not updates it's own value. But there is no such a functionality.
One another solution could be, enumerating the MergeFields in the document and update only the required ones. (This is possible in Office Word API). But I couldn't find a way to achieve the is with RadRichTextBox.
I've added a sample solution demonstrating the scenerio. (Using Telerik version 2012.3.1017.45)
Regards.
<chartView:LineSeries Stroke="Red" StrokeThickness="2" ItemsSource="{Binding ListValue}" ValueBinding="Value" CategoryBinding="Category">private List<SampleClass> tempList;public List<SampleClass> ListValue{ : :}public void GetData(string tempValue){ SampleClass item = new SampleClass (); item.Value= tempValue; item.Category = m_counter++; tempList.Add(item); ListValue= tempList;}