Hi Roohul,
I'm afraid that we do not have such example available.
The snippet in question creates 3 column groups, one for each sequential year, where the each group title is the year.
If you want to create multiple column groups base on the array of years loaded from the database. You will need to store them in a separate array, for example attached to the ViewModel, iterate the array and construct the column definition. For example:
Regards,
Rosen
Telerik
I'm afraid that we do not have such example available.
The snippet in question creates 3 column groups, one for each sequential year, where the each group title is the year.
If you want to create multiple column groups base on the array of years loaded from the database. You will need to store them in a separate array, for example attached to the ViewModel, iterate the array and construct the column definition. For example:
foreach
(var year
in
(
string
[])ViewBag.Years)
{
columns.Group(group => group
.Title(year)
.Columns(info =>
{
//.... bound column declaration
})
);
}
Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!