I have a controller for which the "Index" view just shows a row of data from a model collection. When the "Details" link is selected at any row, I switch to a "Details" page for the same controller with the following tabs:
General: Showing details for the selected model
Contacts: Showing address and phone data for the same model
etc.
The issue I have is that upon selecting the Contacts tab, I need to get data loaded from my model suitable for that tab and I don't know how to affect it.
I have something like this (gleaned after hours of searching:)
tabstrip.Add().Text("Contact").LoadContentFrom("EditContact", "HouseholdController", new { id = Model.Facility_Id }).Selected("@Model.tab" == "Contact");
but that doesn't do anything when I select the tab. I'm at a loss.
The HouseholdController has the following method:
public ActionResult EditContact()
{
var model = db.GetWithFacility_Id(1);
return View(model);
}
I am grateful for any guidance. I'm a total beginner here.