Hi There,
I would like to do dynamic columns using list item from MyModel, can i change the column "title" base on MyModel?
MyModel
{
List<Item> Items;
}
Please refer to code below :
@(Html.Kendo().Grid<MyModel>()
.Name("gridStudentList")
.Columns(columns =>
{
for (int i = 0; i < 3; i++)
{
columns.Bound(c => c.Items[i].Product).Title("Can i use Mymodel property here?").Filterable(false);
columns.Bound(c => c.Items[i].ProductPrice).Filterable(false);
}
})
Thanks for your time. Regards,
I would like to do dynamic columns using list item from MyModel, can i change the column "title" base on MyModel?
MyModel
{
List<Item> Items;
}
Please refer to code below :
@(Html.Kendo().Grid<MyModel>()
.Name("gridStudentList")
.Columns(columns =>
{
for (int i = 0; i < 3; i++)
{
columns.Bound(c => c.Items[i].Product).Title("Can i use Mymodel property here?").Filterable(false);
columns.Bound(c => c.Items[i].ProductPrice).Filterable(false);
}
})
Thanks for your time. Regards,