简体   繁体   中英

Change button text on ASPxPopupControl buttons

I am trying to change the text of ASPxPopupControl buttons (I have not written the ASPxPopupControl code myself. Those guys are long gone. :) So it's up to me). As far as I know, the ASPxPopupControl default buttons are used and if I want to change the button text I have to add code to the.aspx file. I have tried searching for an answer on the DevExpress docs and the world wide web. But could not find anything that matches my needs. I am very grateful for any ideas.

This is the buttons I am talking about: 在此处输入图像描述

The ASPxPopupControl code (There is an attempt to add a custom button but it does not work.):

<dxpc:ASPxPopupControl ID="someLongID" runat="server" 
                AllowDragging="True" ClientInstanceName="someLongID" 
                CloseAction="CloseButton" HeaderText="Varning!" Modal="True" 
                PopupHorizontalAlign="WindowCenter" 
                Width="300px">
    <ContentCollection>
        <dxpc:PopupControlContentControl ID="PopupControlContentControl3" 
                        runat="server" Enabled="True">
            <p>
            <br />
            </p>
            <p align="right">
                <input 
                id="Button1" 
                onclick="javascript:someLongID.Hide();" 
                type="button" value="Stäng" />
            </p>
        </dxpc:PopupControlContentControl>
    </ContentCollection>
    <HeaderStyle BackColor="#FFB6C1" />
</dxpc:ASPxPopupControl>

If you don't implement you own popup edit form, but use the built-in one, it is necessary to access the required text setting via the ASPxGridView.SettingsText (CommandUpdate, etc.).

I think you can change the text content in the item property (in "Properties") which is located in the right down corner on VS. you can click on the item in "Design" mode and then check its setting in "Properties" Hope this helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM