I have the following ajax form tag:
<% using (Ajax.BeginForm("Edit", new { controller="Properties", id=Model.Id }, new AjaxOptions() { UpdateTargetId="item-"+Model.Id }, new { id="property-form", name="property-form" })) {%>
When the form is submitted, the controller returns a partial with a full row to be inserted into the table (the same partial is also used to render the table in the first place).
The idea is that after the user edits an item, the item's row in the table will be replaced with the updated version from the partial. When I point UpdateTargetId to a <div>
element it seems to work fine, but when I point it to a <tr>
element, it doesn't.
Any help would be greatly appreciated.