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

12 posts, 0 answers
  1. John
    John avatar
    33 posts
    Member since:
    Jun 2010

    Posted 08 Jan 2011 Link to this post

    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?
  2. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 12 Jan 2011 Link to this post

    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.
  3. John
    John avatar
    33 posts
    Member since:
    Jun 2010

    Posted 13 Jan 2011 Link to this post

    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.
  4. Nancy
    Nancy avatar
    29 posts
    Member since:
    Aug 2011

    Posted 07 Sep 2011 Link to this post

    to
  5. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 07 Sep 2011 Link to this post

    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 >>

  6. Nancy
    Nancy avatar
    29 posts
    Member since:
    Aug 2011

    Posted 08 Sep 2011 Link to this post

    Dialog
  7. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 08 Sep 2011 Link to this post

    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 >>

  8. Nancy
    Nancy avatar
    29 posts
    Member since:
    Aug 2011

    Posted 13 Sep 2011 Link to this post

    Thanks
  9. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 13 Sep 2011 Link to this post

    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.
  10. Nancy
    Nancy avatar
    29 posts
    Member since:
    Aug 2011

    Posted 19 Sep 2011 Link to this post

    Session
  11. Nancy
    Nancy avatar
    29 posts
    Member since:
    Aug 2011

    Posted 20 Sep 2011 Link to this post

    Hi

  12. Rumen
    Admin
    Rumen avatar
    14031 posts

    Posted 20 Sep 2011 Link to this post

    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
Back to Top