This question is locked. New answers and comments are not allowed.
Hi,
In server side i can "know" that there are some grouping value by doing :
command.GroupDescriptors.Any() where command is GridCommand.
If i found some group descriptors then i return an IEnumerable<AggregateFunctionsGroup> list for the view.
In my view i have something like this :
My ViewBag content all visibility information, i know that a lot of threads talk about hiding grouping values but i just want to know if you could add a method like
"GroupedVisible(bool value)" / GroupedVisible()
or
Groupedhidden(bool value)" / groupedHidden()
in this case i could stop to create a lot of ViewBag property in server side.
An other possibility is to add a GridVisibleColumnBuilder or a GridHiddenColumnBuilder to the methods Visible() and Hidden():
columns.Bound(o => o.DocumentId).Visible(v => !v.IsGroup);
columns.Bound(o => o.DocumentId).Hidden(h => !h.IsGroup);
Please send me your feedback for that functionality,
Regards
PS: I assume that it could probably only work in server side context, not ajax.
In server side i can "know" that there are some grouping value by doing :
command.GroupDescriptors.Any() where command is GridCommand.
If i found some group descriptors then i return an IEnumerable<AggregateFunctionsGroup> list for the view.
In my view i have something like this :
Html.Telerik().Grid<DocumentModel>() .Name("Grid") .BindTo(Model) .DataKeys(c => c.Add(d => d.DocumentId).RouteKey("DocumentId")) .Columns(columns => { columns.Bound(o => o.DocumentId).Visible(ViewBag.DocumentIdVisible); columns.Bound(o => o.Name).Visible(ViewBag.NameVisible); columns.Bound(o => o.Validity).Visible(ViewBag.ValidityVisible); columns.Command(c => c.Delete().ButtonType(GridButtonType.Image)); }) .DataBinding(dataBinding => dataBinding.Server().Select("Document_List", "Documentation").Delete("Document_Delete", "Documentation")) .EnableCustomBinding(true) .Sortable() .Filterable() .Groupable() .ColumnContextMenu() .Pageable(settings => settings.Total(ViewBag.Count).PageSize(ViewBag.PageSize))My ViewBag content all visibility information, i know that a lot of threads talk about hiding grouping values but i just want to know if you could add a method like
"GroupedVisible(bool value)" / GroupedVisible()
or
Groupedhidden(bool value)" / groupedHidden()
in this case i could stop to create a lot of ViewBag property in server side.
An other possibility is to add a GridVisibleColumnBuilder or a GridHiddenColumnBuilder to the methods Visible() and Hidden():
columns.Bound(o => o.DocumentId).Visible(v => !v.IsGroup);
columns.Bound(o => o.DocumentId).Hidden(h => !h.IsGroup);
Please send me your feedback for that functionality,
Regards
PS: I assume that it could probably only work in server side context, not ajax.