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

Is there a client side method for 'find and replace'

11 Answers 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 08 Jan 2011, 11:20 AM
Was wondering if there is way to call the client side method to do "find and replace" more specifically find and find-next.  I know the editor can do it since there is a find and replace built in dialog but a client side method would be great so it can be done programatically.  I know I can grab the document DOM and write something, but the document dom's between ie and firefox are very different and it appears you already have logic in place to do this, but if it is in a form of a client side method it isn't documented anywhere?

11 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Jan 2011, 03:24 PM
Hello John,

The source code of this command is available in the FindAndReplace.ascx file available in the EditorDialogs installation folder. However the code is integrated with the dialog and it is not intended to be used outside it.

Best 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
John
Top achievements
Rank 1
answered on 13 Jan 2011, 03:58 PM
Thanks so much for your reply.

Would be a great feature to add find/replace accessible client side that supported browsers that radeditor does.

I was able to code functionality, using html document dom, but what a time saver if method was exposed to do this.

2 cents.

Thanks again.
0
Nancy
Top achievements
Rank 1
answered on 07 Sep 2011, 07:02 AM
to
0
Rumen
Telerik team
answered on 07 Sep 2011, 04:48 PM
Hi Bhaskar,

You should create a folder in the root of your web application named EditorDialogs and put the FindAndReplace.ascx file in it.

After set the ExternalDialogsPath property to point to the "~/EditorDialogs" folder, e.g.

<telerik:RadEditor runat="server" ID="RadEditor1" ExternalDialogsPath="~/EditorDialogs">

After doing this the editor will start using the FindAnreReplace.ascx file and you can customize it.
The FindAnreReplace.ascx file is available in the EditorDialogs folder available in the RadControls for ASP.NET AJAX installations.

If you still experience any problems please provide information about the exact version of Telerik.Web.UI.dll used in your project.

All the best,
Rumen
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Nancy
Top achievements
Rank 1
answered on 08 Sep 2011, 07:02 AM
Dialog
0
Rumen
Telerik team
answered on 08 Sep 2011, 03:31 PM
Hello Bhaskar,

By design, the RadEeditor's dialogs could not be loaded on the same page where the RadEditor control resides.

Greetings,
Rumen
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Nancy
Top achievements
Rank 1
answered on 13 Sep 2011, 02:44 PM
Thanks
0
Rumen
Telerik team
answered on 13 Sep 2011, 04:17 PM
Hi Bhaskar,

Telerik does not offer support for customizations of the built-in dialogs of RadEditor. We can only guide you but it is up to the developer to implement the requirements of his/her project.

If you want to help you, please open a support ticket and send a simple working project that demonstrates what you have done and what you want to achieve? Please, include all project files, because I need a runnable project that I can test and modify.

You can attach zipped projects only in the support ticketing system but not in the forums.

It is also important to know that the built-in dialog files are changed and enhanced and if you use an older version of the RadEditor you will be unable to use the latest version of the Find And Replace dialog that I attached in my earlier reply.

My suggestion is to also upgrade to the latest build of Telerik.Web.UI.dll which is 2011.2.712 (Q2 2011) which offers support for the latest modern browsers.

Best wishes,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nancy
Top achievements
Rank 1
answered on 19 Sep 2011, 10:27 AM
Session
0
Nancy
Top achievements
Rank 1
answered on 20 Sep 2011, 08:03 AM
Hi

0
Rumen
Telerik team
answered on 20 Sep 2011, 08:05 AM
Hello Bhaskar,

As requested in this forum thread I deleted the file contents and image attachments in your posts.

If you want to execute server code in the external dialogs of RadEditor see how this is done in this KB article:
Displaying single upload control in the FileBrowser Upload manager. You need to add a usercontrol to the ascx file and you will be able to execute server code in the usercontrol.

Regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Editor
Asked by
John
Top achievements
Rank 1
Answers by
Rumen
Telerik team
John
Top achievements
Rank 1
Nancy
Top achievements
Rank 1
Share this question
or