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
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.
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.