How do you set the GroupByAreaVisibility property in an MVC helper ('top', 'bottom', 'hidden')? I tried string and also attempted locating an enumeration, but I can't comprehend what intellisense is asking for.
@(Html.Infragistics().Grid(Model.Releases.AsQueryable())
.ID("grid1")
.Width("100%")
.Columns(column =>
{
column.For(c => c.Name).HeaderText("Project Name").Width("250");
column.For(c => c.OnSchedule).HeaderText("On Schedule");
})
.Features(features =>
features.GroupBy().GroupByAreaVisibility(?)(ColumnSettings(groupedColumn =>
groupedColumn.ColumnSetting().ColumnKey("OnSchedule").IsGroupBy(true);
groupedColumn.ColumnSetting().ColumnKey("Name").AllowGrouping(false);
});
.DataBind()
.Render()
)
Also, there are great code examples in the documentation for the jquery API for every method, etc. Is there not an equivalent for MVC? Some of the syntax is unusual to me.
Hello Chris,
You should pass GroupAreaVisibility enum. Here is an example:
.Features(feature =>{feature.GroupBy().GroupByAreaVisibility(GroupAreaVisibility.Bottom);})
So far we don't provide code snippets for the MVC Wrappers API. You can submit a feature request about that via the Feature Request section of your account.
Hope this helps,Martin PavlovInfragistics, Inc.