2017-02-25 55 views
0

我已经使用DevExpress生成了一个标签,我如何使用Jquery使这个标签为ClientVisible。 ID,以访问labelo将是$( '#lbl_Err _' + Model.Id)我怎样才能使用Jquery使DevExpress标签ClientVisible

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(); 

回答