Hi,
A possible way to have set height only when the items in the Menu are too much (or more than 5, let's say), is to set the DefaultGroupSettings.Height dynamically in the server-side DataBound handler of the control. <telerik:RadContextMenu runat="server" ID="contextDBColumns"
OnDataBound="contextDBColumns_DataBound"
...
</telerik:RadContextMenu>
protected void contextDBColumns_DataBound(object sender, EventArgs e)
{
RadMenu menu = sender as RadMenu;
if (menu.Items.Count > 5)
{
menu.DefaultGroupSettings.Height = 200;
}
}
Regards,
Vessy
Progress Telerik