Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The issue is here

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

ASP.NET
<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>




C#
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.
Posted

Try Environment.NewLine

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



Cheers,
Edo
 
Share this answer
 
It's better to set a width to a checkbox control.It's automatically down to second line
C#
<dx:aspxcheckbox xmlns:dx="#unknown"> style="width:40px;"  runat="server" ID="dxchkIsDependentField1" ClientInstanceName="dxchkIsDependentField1"  Text="Dependant Field"/></dx:aspxcheckbox>

Hope this helps
 
Share this answer
 
Comments
Ali_100 9-Sep-13 8:07am    
It works

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900