How to localization the ConfirmDialog in grid

2 posts, 0 answers
  1. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 15 Jun 2016 Link to this post

    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>

  2. Eyup
    Admin
    Eyup avatar
    3129 posts

    Posted 20 Jun 2016 Link to this post

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