<script type="text/javascript"> function detailGridData(e) { var user = e.data["ID"]; var x = e; $.ajax({ type: "POST", url: "/Grid/GetDetailsUser", data: { 'user': user }, datatype: "JSON", success: function (result) { var e = x; e.detailsElement.find("#detailGrid").ejGrid({ dataSource: result, columns: [ { field: "ID" }, { field: "IdPerson" }, { field: "Order" }, { field: "Count" } ] }); }, error: function (jqXHR, textStatus, errorThrown) { console.log(textStatus + ' ' + errorThrown); } }); e.detailsElement.find(".tabcontrol").ejTab(); } </script> |