本文介绍了复选框文本换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

问题在这里



[]



The issue is here

http://postimg.org/image/os2xryot5/[^]

<td  id="tdchkboxIsDependant"  runat="server" style="width" >
                      <dx:ASPxCheckBox  runat="server" ID="dxchkIsDependentField1" ClientInstanceName="dxchkIsDependentField1"  Text="Dependant Field"

                        ClientEnabled="true">
                        <ClientSideEvents CheckedChanged="function(s,e){if(s.GetChecked()){dxcbdependentfield.SetEnabled(true); DisableLink('true');} else{dxcbdependentfield.SetSelectedIndex(-1); dxcbdependentfield.SetEnabled(false); dxgvWellFields.PerformCallback(); DisableLink('false');}}" />
                      </dx:ASPxCheckBox>
                       <%-- <asp:Label ID="lblfordependantfield" runat="server" Text="Dependent Field"></asp:Label>--%>
                   </td>













if (wellFieldEntityTypeMapping.IsCalculatedField)
            {
                dxchkIsDependentField1.ClientEnabled = false;
                tdchkboxIsDependant.Attributes["style"] = "padding-top:15px;";
                dxchkIsDependentField1.CssClass = "smallItlicStyle";
                dxchkIsDependentField1.Text = "Calculated field cannot be " + "<br/>" + " marked as dependant field";
            }





我想打破复选框文本行。



I want to break the line of text of check box.

推荐答案

dxchkIsDependentField1.Text =
    "Calculated field cannot be " +
    Environment.NewLine +
    " marked as dependant field";







干杯,

Edo




Cheers,
Edo


<dx:aspxcheckbox xmlns:dx="#unknown"> style="width:40px;"  runat="server" ID="dxchkIsDependentField1" ClientInstanceName="dxchkIsDependentField1"  Text="Dependant Field"/></dx:aspxcheckbox>



希望这会有所帮助


Hope this helps


这篇关于复选框文本换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 13:27