-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Because of the way DataTables.Queryable (DTQ) works with EF models directly, we usually AutoMapper back these results. This can lead to the return ViewModel being very different than the Entity.
Right now, jQuery DataTables uses columnDefs.data to try and traverse the actual data it gets back from the server. But name is different.
I want to be able to do:
{
columnDefs:
[
{
name: "Entity.ActualNavigationProperty"
data: "ReturnViewModel.Property"
}
]
}
Hopefully this is clear. name
is used so when DTQ tries to traverse the actual properties to search and configure custom column searchs and all that and then data
is used by jQuery DT to traverse the returned viewmodel.