How to localization the ConfirmDialog in grid

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

    Posted 15 Jun 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
    2942 posts

    Posted 20 Jun 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.
  3. DevCraft R3 2016 release webinar banner
Back to Top