You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just discovered your solution and this is just the perfect thing for what I was trying to do with Kendo UI Grid in the new ASP.NET 5 MVC 6 framework.
I had to make a few changes in order for this to work with the new framework but in the end this is working quite good!
While trying many scenarios with this component, the only one for which I got an error is when I try to group a grid by a navigation property.
For instance, I have a grid listing addresses (a type of entity) that I want to group by country (another type of entity available as a navigation property in the address entity).
I get an error in the KendoGridEx expression composing when I try to specify the groupby clause like this for instance:
group: {field: "Country.Name",dir: "asc"}
I think this is just a scenario that was not intended to work in your component but I think this would be quite useful.
For now I ended up grouping by the navigation property's foreign key that I materialized in the Adress entity and then used an hidden column for this property in the grid with a groupheadertemplate to show the right property in the group header.
I defined this javascript function for use in the template:
If we could directly specify to group by a navigation property this would be a lot easier.
I only need to do this because I do not use a flattened ViewModel and the automapping options of your component. I work directly with the entities and so I got to work with the navigation properties.
The text was updated successfully, but these errors were encountered:
Hello,
I just discovered your solution and this is just the perfect thing for what I was trying to do with Kendo UI Grid in the new ASP.NET 5 MVC 6 framework.
I had to make a few changes in order for this to work with the new framework but in the end this is working quite good!
While trying many scenarios with this component, the only one for which I got an error is when I try to group a grid by a navigation property.
For instance, I have a grid listing addresses (a type of entity) that I want to group by country (another type of entity available as a navigation property in the address entity).
I get an error in the KendoGridEx expression composing when I try to specify the groupby clause like this for instance:
I think this is just a scenario that was not intended to work in your component but I think this would be quite useful.
For now I ended up grouping by the navigation property's foreign key that I materialized in the Adress entity and then used an hidden column for this property in the grid with a groupheadertemplate to show the right property in the group header.
I defined this javascript function for use in the template:
I specified the grouping like this:
Here is the template I used:
If we could directly specify to group by a navigation property this would be a lot easier.
I only need to do this because I do not use a flattened ViewModel and the automapping options of your component. I work directly with the entities and so I got to work with the navigation properties.
The text was updated successfully, but these errors were encountered: