我正在尝试更改 ASPxPopupControl 按钮的文本(我自己还没有编写 ASPxPopupControl 代码。那些人早就不在了。:) 所以这取决于我)。据我所知,使用了 ASPxPopupControl 默认按钮,如果我想更改按钮文本,我必须将代码添加到 .aspx 文件中。我曾尝试在 DevExpress 文档和万维网上寻找答案。但找不到任何符合我需求的东西。我非常感谢任何想法。
ASPxPopupControl 代码(尝试添加自定义按钮但不起作用。):
<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>
如果您没有实现自己的弹出编辑表单,而是使用内置表单,则需要通过ASPxGridView.SettingsText(CommandUpdate 等)访问所需的文本设置。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句