BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<ej:TreeGrid ID="TreeGridcontainer" runat="server"
DetailsTemplate="descriptionTemplate"
ShowDetailsRowInfoColumn="false"
ShowDetailsRow="true"
DetailsDataBound="databound">
</ej:TreeGrid>
<script id="descriptionTemplate" type="text/x-jsrender">
<div id="container{{:Id}}"></div>
</script>
<script type="text/javascript">
//Separate data source for resources
var resources = [];
var x = 0;
for (var i = 0; i < 16; i++) {
var parent = {};
parent["Id"] = ++x;
parent["Name"] = "Resource " + x;
resources.push(parent);
}
function databound(args) {
for (var i = 0; i < resources.length; i++) {
if (resources[i].Id == args.data.Id) {
//we can append the required data to details template from here
$("#container" + args.data.Id).append(resources[i].Name);
}
}
}
</script> |