Using version 2011.2 trying to bind to a property of a child object using the MVC helper...
...Columns(x => { x.For(y => y.Script.Name).Width("auto").HeaderText("Script Name");...})
Fails because the key is set to just "Name" which doesn't exist on y. I tried forcing the Key to "Script.Name", but that didn't help.
Do I have to make a flat view model?
So I flattened my model by using a .Select(x => new FooViewModel { ScriptName = x.Script.Name ... }) in the DataSource query to get the grid to work. However, filtering doesn't work because it doesn't recognize the columns. Is there a work around for filtering too? I don't see how this is supposed to work for all but the simplest, fully denormalized entity models.
Hi Angel,
You mentioned that: "Complex properties in the Models aren't supported yet... We are planning to add support for this in the near future.". I was just curious; is this functionality is planned for a specific release? Is this functionality that we can expect in 2013?
Thanks,
Paul