NavBar 中的 Devexpress mvc gridview
我想要有两个组的导航栏和每个组中的网格视图。 我的 gridviews 在部分视图中,
我像这样使用它们:
Html.RenderPartial("ManagersGridPartial", Model)
Problem that i cant addpartial view in group.Items
@Html.DevExpress().NavBar(settings =>
{
settings.Name = "managersNavBar";
settings.AutoCollapse = false;
settings.ExpandButtonPosition = ExpandButtonPosition.Right;
settings.SkinID = "None";
settings.Width = Unit.Percentage(98);
settings.Styles.Item.Paddings.Padding = 0;
settings.Groups.Add(group =>
{
group.Text = "First group";
group.Items.Add("aaaaaaaasssssdddddd");
});
settings.Groups.Add(group =>
{
group.Text = "Second group";
group.Items.Add("asdasdasd");
});
}).GetHtml()
I want to have navbar with 2 groups and gridview in each group.
My gridviews are in partial views
I use them like this:
Html.RenderPartial("ManagersGridPartial", Model)
Problem that i cant add partial view in group.Items
@Html.DevExpress().NavBar(settings =>
{
settings.Name = "managersNavBar";
settings.AutoCollapse = false;
settings.ExpandButtonPosition = ExpandButtonPosition.Right;
settings.SkinID = "None";
settings.Width = Unit.Percentage(98);
settings.Styles.Item.Paddings.Padding = 0;
settings.Groups.Add(group =>
{
group.Text = "First group";
group.Items.Add("aaaaaaaasssssdddddd");
});
settings.Groups.Add(group =>
{
group.Text = "Second group";
group.Items.Add("asdasdasd");
});
}).GetHtml()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以通过以下方式通过 MVCxNavBarItem.SetTemplateContent 方法指定特定 Item 的内容:
it is possible to specify a particular Item's content via the MVCxNavBarItem.SetTemplateContent method in the following manner: