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

How to change the text on the Cancel button of FindAndReplace dialog to Close

1 Answer 38 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Srinivas
Top achievements
Rank 1
Srinivas asked on 25 Jul 2008, 03:50 PM
Hi,

I am using the FindAndReplace dialogs. In order to hide the Replace tab in the FindAndReplace dialog, I have copied the EditorDialogs directory from the RadControls installation to the author folder of my application and set the ExternalDialogsPath property of the Radeditor to the path referencing the above created folder. Below is the exact path

ExternalDialogsPath

="~/app/authoring/author/EditorDialogs/EditorDialogsForLOs"

I have also added the below statement in the user control
this._tab._tabs[1].style.display = "none";

Now I want to change the text on the Cancel button to "Close".

Can you please suggest me the how to do this?

Thanks,
Srinivas Vaidya

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 28 Jul 2008, 08:45 AM
Hi Srinivas,

Open the EditorDialogsForLOs/FindAndReplace.ascx and change the following line
<li>  
    <a id="CancelButton" href="javascript:void(0);" class="radECtrlButtons" title="Cancel" style="width: 90px;">  
       <span><script type="text/javascript">document.write(localization["Cancel"]);</script></span>  
    </a>  
</li> 
to
<li>     
    <a id="CancelButton" href="javascript:void(0);" class="radECtrlButtons" title="Cancel" style="width: 90px;">     
       <span>Close</span>     
    </a>     
</li>    
 

I hope this helps.

Kind regards,
George
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Srinivas
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or