How to localization the ConfirmDialog in grid

2 posts, 0 answers
  1. Wang
    Wang avatar
    48 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">
                        <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" />
                <PagerStyle Mode="NextPrevAndNumeric" />
                    <ClientEvents OnRowDblClick="rowDblClick" />

  2. Eyup
    Eyup avatar
    4081 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" />

    That should do the trick.

    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