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

Add text from template

3 Answers 46 Views
Editor
This is a migrated thread and some comments may be shown as answers.
ARUNTHOMAS
Top achievements
Rank 1
ARUNTHOMAS asked on 02 Feb 2011, 06:31 AM
Hi Telerik,
I need to add Template sentences from database with existing content.What can i do?.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 02 Feb 2011, 08:49 AM
Hello ARUNTHOMAS,

RadEditor does not offer mail merge functionality and you should implement it yourself.
Perhaps the easiest way to tackle this task would be to use *system* strings that have some fixed starting and ending characters, e.g. ##FirstName##, or @@FirstName@@ - or something similar.
You should instruct your users what the list of those *system*strings is, so that they can insert those where needed. Then, on the server side, all you need to do is run some simple String.Replace methods that will replace such a string with the exact database row data.



Regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
ARUNTHOMAS
Top achievements
Rank 1
answered on 02 Feb 2011, 11:15 AM
Thankyou Rumen ,
I am taking about auto complete.In that i need to get the plain text to compare then i need to set the plain text.For which i asked....
Thanks.
0
Rumen
Telerik team
answered on 04 Feb 2011, 03:58 PM
Hi ARUNTHOMAS,

This custom feature is also not supported out-of-the box by the controls and you should implement it yourself. You may find useful the code provided in the following forum thread: On-The-Fly find/replace of editor text.

Kind regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
ARUNTHOMAS
Top achievements
Rank 1
Answers by
Rumen
Telerik team
ARUNTHOMAS
Top achievements
Rank 1
Share this question
or