需要设置按钮的一些属性。例如“已检查”。我想这很简单,但我无法处理它。请给个平安的建议。
Html.DevExpress().Button(
btnSettings =>
{
btnSettings.Name = "Details";
btnSettings.Text = "";
btnSettings.ClientSideEvents.Click = "function (s,e){Details.Checked = true}";
btnSettings.ControlStyle.CssClass = "button";
btnSettings.ToolTip = "details";
btnSettings.UseSubmitBehavior = false;
btnSettings.AllowFocus = false;
btnSettings.Width = 1;
btnSettings.Height = 1;
}
)
.Render();