Hello, first time posting here so Hi to everyone on the forums.
I'm currently evaluating Kendo for use in a asp.net mvc4 web application using razor based views. As usual I started with trying to figure out the "hard part" first, how well Kendo handles ManyToMany relationships in models. And instantly i was positively greeted with a list of all the foreign key id's in the column. So far so good.
After some fiddling and some reading i figured that the use of a .Template would be the way to go to display the actual information and not just the Id's. Maybe I just havent understood the syntax of the templates yet, I'v only been looking at this for a few hours still.
What I'v tried is something like this:
The data in the Model is all there and in order.
Obviously this isn't working, and I'v tried a few combinations of output that i'v found on these forums but none seem to work for me.
Can anyone offer some assistance towards the proper way of achieving this?
Br.
I'm currently evaluating Kendo for use in a asp.net mvc4 web application using razor based views. As usual I started with trying to figure out the "hard part" first, how well Kendo handles ManyToMany relationships in models. And instantly i was positively greeted with a list of all the foreign key id's in the column. So far so good.
After some fiddling and some reading i figured that the use of a .Template would be the way to go to display the actual information and not just the Id's. Maybe I just havent understood the syntax of the templates yet, I'v only been looking at this for a few hours still.
What I'v tried is something like this:
columns.Bound(m => m.Departments).Template(m =>
{
foreach (var department in m.Departments)
{
@<
text
> @department.Name @</
text
>;
}
});
Obviously this isn't working, and I'v tried a few combinations of output that i'v found on these forums but none seem to work for me.
Can anyone offer some assistance towards the proper way of achieving this?
Br.