<script>
function onClickFasiDettaglioAttributi(args) {
var obj = $("#GridFasi").ejGrid("instance");
var currentRowData = obj.getSelectedRecords()[0];
}
function onClickWipsDettaglioAttributi(args) {
var obj = $(args.e.target).closest(".e-grid").ejGrid("instance")
var currentRowData = obj.getSelectedRecords()[0];
}
function onClickLavorazioniDettaglioAttributi(args) {
var obj = $(args.e.target).closest(".e-grid").ejGrid("instance")
var currentRowData = obj.getSelectedRecords()[0];
}
</script> |
<script id="gridFasiTemplate" type="text/x-jsrender">
<div class="tabcontrol" id="Test">
. . . .
<div id="gridTabWips{{:Id}}">
<div id="detailGridWips{{:Id}}">
</div>
</div>
<div id="gridTabLavorazioni{{:Id1}}">
<div id="detailGridLavorazioni{{:Id1}}">
</div>
</div>
</div>
</script>
<script type="text/javascript">
var data = @Html.Raw(Json.Encode(ViewBag.OrdData));
function expandChildrenGridFasi(e) {
var filteredData = e.data["Id"];
. . ..
e.detailsElement.find("#detailGridWips" + filteredData).ejGrid({
dataSource: dataWips,
recordClick: function (args) {
//args.data will retrieve the
},
. . . .
});
. . . .
e.detailsElement.find("#detailGridLavorazioni" + filteredData).ejGrid({
. .
});
. . .
}
</script>
|
<script type="text/javascript">
var data = @Html.Raw(Json.Encode(ViewBag.OrdData));
function expandChildrenGridFasi(e) {
var filteredData = e.data["EmployeeID"];
. . . .
e.detailsElement.find("#detailGridWips").ejGrid({
dataSource: dataWips,
recordClick: function (args) {
//args.data will retrieve the
},
. . . .
});
. . .
e.detailsElement.find("#detailGridLavorazioni").ejGrid({
. . . . ..
recordClick: function (args) {
},
childGrid: {
queryString: "",
recordClick: function (args) {
//args.data will retrieve the
},
. . .
},
. . .
});
}
</script> |