Hi!
please, see atached image. I am migrating from UltraWebMenu to WebDataMenu control. I want to accomplish (by code) to have a checkbox menu item like the one in the image, is that possible?
thanks,
Fernando
Hello Fernando,
Unfortunately there is no such sample available.
Hi
do you have some style sample having that appearance?
Thanks,
To achieve this, you could style the default checkbox to replicate the desired appearance.
Hi.
thanks for your answer. I am using that, but I get a "check box" image (look the attached image), I like the style used in UltraWebMenu (the original image I sent), is there a way to have same style? Thanks.
Hi Fernando,
You can achieve this using item templates. Here is a sample code which will add checkbox to the first root menu item:
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
WebDataMenu1.Items[0].Template = new CustomItemTemplate();
}
public class CustomItemTemplate : ITemplate
public void InstantiateIn(Control container)
CheckBox cb = new CheckBox();
cb.Text = "Check";
container.Controls.Add(cb);
Please let me know if you have any questions.