New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Localize the OK and Cancel buttons text of the RadButton Confirm dialog


Product Progress® Telerik® UI for ASP.NET AJAX


The article shows how to change the text of the Ok and Cancel buttons of the RadButton Confirm dialog to Yes and No.


The localization (OK and Cancel text change) can be achieved, by using RadConfirm dialog instead of the browser confirm one, since the browser's one cannot be modified (customized).

You need to register RadWindowManager and override its ConfirmTemplate as shown below:

<telerik:RadButton ID="cmdCreateBatch" runat="server" Text="Create Batch" Width="160" >
    <ConfirmSettings ConfirmText="Are you sure want to Create the Batch?"  />

<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
         <div class="rwDialog rwConfirmDialog">
            <div class="rwDialogContent">
                <div class="rwDialogMessage">{1}</div>
            <div class="rwDialogButtons">
                <button type="button" class="rwOkBtn" onclick="$find('{0}').close(true); return false;">##LOC[Yes]##</button>
                <button type="button" class="rwCancelBtn" onclick="$find('{0}').close(false); return false;">##LOC[No]##</button>
In this article