Hello,
I was going through the context menu example
http://demos.telerik.com/aspnet-mvc/menu/context-menu
and i would like to show context menu on kendo grid instead. So on view where i have kendo grid i am adding the following code
@(Html.Kendo().ContextMenu()
.Name("menu")
.Target("#Grid")
.Orientation(ContextMenuOrientation.Vertical)
.Animation(animation =>
{
animation.Open(open =>
{
open.Fade(FadeDirection.In);
open.Duration(500);
});
})
.Items(items =>
{
items.Add()
.Text("Forward");
items.Add()
.Text("Mark as")
.Items(children =>
{
children.Add().Text("Unread");
children.Add().Separator(true);
children.Add().Text("Important");
children.Add().Text("Read");
});
})
)
But it does not display any context menu. What am i doing wrong. Do i need more than a target to say where the context menu will be displayed?
Anamika
I was going through the context menu example
http://demos.telerik.com/aspnet-mvc/menu/context-menu
and i would like to show context menu on kendo grid instead. So on view where i have kendo grid i am adding the following code
@(Html.Kendo().ContextMenu()
.Name("menu")
.Target("#Grid")
.Orientation(ContextMenuOrientation.Vertical)
.Animation(animation =>
{
animation.Open(open =>
{
open.Fade(FadeDirection.In);
open.Duration(500);
});
})
.Items(items =>
{
items.Add()
.Text("Forward");
items.Add()
.Text("Mark as")
.Items(children =>
{
children.Add().Text("Unread");
children.Add().Separator(true);
children.Add().Text("Important");
children.Add().Text("Read");
});
})
)
But it does not display any context menu. What am i doing wrong. Do i need more than a target to say where the context menu will be displayed?
Anamika