Hello,
i have a standard grid like this:
My model looks similar to this:
Page Model contains an array of ItemModel and i would like to display the Items field as a separate grid for each corresponging ItemModel.
Is it possible to achieve this in an easy way (preferably setting and filtering data source straight from the page Model, since it is already loaded in) ?
I was fooling around a lot with provided examples, but i wasn't able to fill the hierarchic grid with the right data.
Thank you for any suggestion.
Rostislav Striz
i have a standard grid like this:
@(Html.Kendo().Grid<ItemModel>(Model)
.Name(
"Grid"
)
.Columns(columns =>
{
columns.Bound(p => p.Name).Title(
"Name"
);
})
)
class
ItemModel
{
string
Name;
Item Items[];
}
class
Item
{
string
Name;
DateTime Created;
}
Is it possible to achieve this in an easy way (preferably setting and filtering data source straight from the page Model, since it is already loaded in) ?
I was fooling around a lot with provided examples, but i wasn't able to fill the hierarchic grid with the right data.
Thank you for any suggestion.
Rostislav Striz