R
Ricardo Perdigao
Guest
Hi Richard, Here is the code if you were to use the Stacked Grid template: onShow($scope) { console.log('Show'); this.scope = $scope; $scope.vm.$window.showDetails = function showDetails(e) { e.preventDefault(); var tr = $(e.target).closest("tr"); // get the current table row (tr) var data = this.dataItem(tr); window.open(' http://localhost:8810/static/' + data.CustNum + '.pdf', 'PDF Window', 'toolbar=no'); }; var newCommand = {command: { text: "View Details", click: showDetails }, title: " ", width: "180px" }; this.$model.parentGridOptions.columns.push(newCommand); }
Continue reading...
Continue reading...