I am developing an interactive web application with ASP.NET Core MVC.
The application consists of reading several items of data from a JSON file, nested in the following way:
Communities --> People --> People data
I have already developed the model, the controller and the view, and I am able to show a grid containing the names of the people available in the JSON file, using this technique from NewtonSoft :
string json = webClient.DownloadString(@"MyJson.json");
model.RootObjects = JsonConvert.DeserializeObject<Rootobject>(json);
My question: I would like to add a popup/window, upon clicking one of the buttons/data cells that contain the person name in the grid. Upon clicking the modal must show further information from the same Json file that has been used to build the Main Grid (in the index) .
The complexity that I am facing (As I am really new to this kind of dev) is : having multiple dynamic buttons (created from the Json data) then synchronizing between the ID of the button (Or Data cell) and the Specific information being read again from the JSON and returned to the model.
I have tried a lot of solutions which I have found on different websites, I have seen JQuery, AJAX . Tried to build another model for a partial view, but in vain .
I only need some suggestions from your experience. What is the best that you could do in this kid of situations?
Should I go again through developing a new model in my ASP.NET Core MVC and reinvent the wheel? Should I go through pure AJAX, jQuery ...etc ?