2017-02-25 51 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(); 

回答