如何使用Jquery使DevExpress标签ClientVisible

时间:2017-02-25 20:00:49

标签: c# jquery devexpress

我使用DevExpress生成了一个标签,如何使用Jquery使这个标签成为ClientVisible。 访问labelo的ID为$('#lbl_Err _'+ Model.Id)

Html.DevExpress().Label(lbl => {
    lbl.Name = string.Format("lbl_Err_{0}", Model.Id);
    lbl.Text = "You must supply a reason`enter code here`n: 10 characters minimum";
    lbl.ControlStyle.Font.Bold = false;
    lbl.Properties.EnableClientSideAPI = true;
    lbl.ClientVisible = false;
    lbl.ControlStyle.ForeColor = System.Drawing.Color.Red;

}).Render();

1 个答案:

答案 0 :(得分:0)

使用SetVisible中的Label's client-side API

例如:

lbl.SetVisible(true);

<强>参考:
How to change Label's text on the client side