I have an asp.net-mvc site. I have a page with a grid of data on it and when I want to edit a row (by showing up a popup form). I have 2 options:
Preloading and hiding the form on initial page load in a hidden div and then returning json from the server, binding all of the fields and attributes on the client side and then showing it.
Returning PartialView() from the server of a PartialView() in which case all the binding is on the server side
It seems that this is decision of convinience versus performance.
Option #2 is much easier because I can do all the binding (and any logic) in C# but it seems like #1 would be much faster because I am not sending over all of that HTML over the network (just the json data). This assumes that the binding on the client side is going to be faster than the performance hit of the extra network hit.
Is there any other factors that I am missing in this decision to return json or a PartialView() when using asp.net-mvc to populate a form