I wish I had a URL to provide but it's only on our local servers right now. Here is the HTML though for the table that has "sortable" added to it, but with only one row of the master table shown (for space saving purposes). I am warning you that it is hideous and not entirely of my own design:
HTML Code:
<table width="100%" id="responseOptions" class="grid">
<thead>
<tr>
<th class="index sequence">Seq</th>
<th class="itemlabel">Label</th>
<th style="width:50px" class="displayimage">Image</th>
<th class="displayimagecta">Action</th>
<th class="isactive">A?</th>
<th style="display:none" class="hiddenflds"> </th>
<th class="rowcta">Row Action</th>
</tr>
</thead>
<tfoot>
<tr>
<td align="right" colspan="8"><img class="addItem" src="/Content/img/add.png" alt="Add"> <a class="addItem" style="cursor: pointer;">Create New Option</a></td>
</tr>
</tfoot>
<tbody>
<tr>
<td class="index sequence">1</td>
<td colspan="6">
<form method="post" id="form1" data-ajax-success="showgridsave" data-ajax-failure="showgridfailure" data-ajax-complete="showgridsuccess" data-ajax-begin="validategridform" data-ajax="true" action="/testsetup/demographicresponseitemoption/edititem">
<table width="100%" border="0">
<tbody><tr valign="top">
<td class="itemlabel"><input type="text" value="yes" name="item.Label" id="item_Label" data-val-required="Label is required" data-val="true" class="text-box single-line"><span data-valmsg-replace="true" data-valmsg-for="item.Label" class="field-validation-valid"></span></td>
<td style="height:40px;width:50px" class="displayimage"><img alt="" src="/content/media/yougotit.jpg?height=40&width=50"></td>
<td class="displayimagecta">
<input type="image" src="/Content/img/upload.png" title="Upload" alt="Upload" name="" id="upload_11">
<input type="image" src="/Content/img/delete.png" title="Remove" alt="Remove" name="" id="remove_11">
</td>
<td class="isactive"><input type="checkbox" value="true" name="item.IsActive" id="item_IsActive" data-val-required="The Active? field is required." data-val="true" class="check-box" checked="checked"><input type="hidden" value="false" name="item.IsActive"></td>
<td class="hiddenflds">
<input type="hidden" value="101" name="item.ID" id="item_ID" data-val-required="The ID field is required." data-val-number="The field ID must be a number." data-val="true">
<input type="hidden" value="10/18/2012 6:26:53 AM" name="item.DateCreated" id="item_DateCreated" data-val-required="The DateCreated field is required." data-val="true">
<input type="hidden" value="27" name="item.OwnerID" id="item_OwnerID" data-val-required="The OwnerID field is required." data-val-number="The field OwnerID must be a number." data-val="true">
<input type="hidden" value="11" name="item.ParentID" id="item_ParentID" data-val-required="The ParentID field is required." data-val-number="The field ParentID must be a number." data-val="true">
<input type="hidden" value="/content/media/yougotit.jpg" name="item.MediaPath" id="item_MediaPath">
</td>
<td align="right" class="rowcta">
<input type="image" src="/Content/img/save.png" title="Save" alt="Save" name="" id="save_11">
<input type="image" src="/Content/img/cancel.png" title="Cancel" alt="Cancel" name="" id="cancel_11">
<input type="image" src="/Content/img/delete.png" title="Delete" alt="Delete" name="" id="delete_11">
</td>
</tr>
</tbody></table>
</form>
</td></tr>
</tbody></table>
</form></td></tr></tbody></table>
The main problem is the nested table in it. I fought against having a nested table but lost the fight. But that doesn't seem to be the cause of the problem I'm describing. Maybe when I get back to work tomorrow I can start adding elements of this in to the jsfiddle example and see when the problem occurs.
Bookmarks