Lets say I have two objects:
A person can own many cars. The grid contains a list of people and each person has a "primary car" attribute. This is obviously a foreign key to the car object. However, the drop down list should only contain cars that belong to that person.
How do I accomplish this without doing something inefficient like:
] = w.Cars.GetAll();
I understand I can use an/a EditorTemplate/ClientTemplate. However, every example I've found online has the inefficient step above. If I have a controller method such as:
JsonResult GetCars([DataSourceRequest] DataSourceRequest request,
Can I not just use this controller method in the template as opposed to dumping the entire list of cars?
Thanks for reading!