Problem: when we add cssclass to asp.net checkbox control, it renders checkbox control in span tag. That not what we want.
Solution: call InputAttributes function
C#
protected override void OnPreRender(EventArgs e)
{
if (!Page.IsPostBack)
{
chkMenuItem.InputAttributes.Add("class", "selectall");
}
}
0 comments:
Post a Comment