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

How to localization the ConfirmDialog in grid

1 Answer 72 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Wang
Top achievements
Rank 1
Wang asked on 15 Jun 2016, 05:24 AM

Hello,I want to localization the ok and cancel button of ConfirmDialog in grid,how to do that?

here is the code of aspx:

<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="MainGrid" AutoGenerateColumns="false" AllowPaging="true"
            OnNeedDataSource="MainGrid_NeedDataSource" OnUpdateCommand="MainGrid_UpdateCommand"
            OnItemCreated="MainGrid_ItemCreated" OnDeleteCommand="MainGrid_DeleteCommand"
            OnInsertCommand="MainGrid_InsertCommand" >
            <MasterTableView DataKeyNames="Id" CommandItemDisplay="Top" InsertItemPageIndexAction="ShowItemOnCurrentPage">
                <Columns>
                    <telerik:GridEditCommandColumn ItemStyle-Width="20px" />
                    <telerik:GridBoundColumn DataField="Date" HeaderText="Date" />
                    <telerik:GridBoundColumn DataField="Rate" HeaderText="Rate" />
                    <telerik:GridButtonColumn ConfirmText="确定删除此记录?" ConfirmDialogType="RadWindow" ConfirmDialogHeight ="120" ConfirmDialogWidth="240" 
                        ConfirmTitle="删除确认" ButtonType="FontIconButton" CommandName="Delete" ItemStyle-Width="20px" />
                </Columns>
            </MasterTableView>
            <PagerStyle Mode="NextPrevAndNumeric" />
            <ClientSettings>
                <ClientEvents OnRowDblClick="rowDblClick" />
            </ClientSettings>
        </telerik:RadGrid>

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 20 Jun 2016, 08:54 AM
Hi Wang,

Since you are using the RadWindow mode, you can use the properties of the RadWindowManager on the page to achieve this requirement:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
    <Localization OK="Accept" Cancel="Reject" />
</telerik:RadWindowManager>

That should do the trick.

Regards,
Eyup
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Grid
Asked by
Wang
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or