Hi,

I need to get a selected row(TransactionID) in UI-grid and save that as a 
parameter. Attached my  UI- grid  as follow

$scope.gridOptions = {

        appScopeProvider: {
            onClick: function (row) {
                var url = 'ShowDetail';
                window.open(url, "_blank", 
"height=600,width=800,toolbar=no,location=no,menubar=no,titlebar=no");
            }
        },
        data: 'SearchData',
        enableSorting: true,
        paginationPageSizes: [25, 50, 75],
        paginationPageSize: 5,
        columnDefs: [
            
                { field: "TransactionID", cellTemplate: '<div 
class="ui-grid-cell-contents">' +
                         '<a ng-click="grid.appScope.onClick(row)" > 
Details </a>' +
                         '</div>' },           
                    { field: "TransactionID", width: 120 },
                    { field: "Date", width: 120 },  
                    { field: "OrderID", width: 120 },
                    { field: "OrderName", width: 120 },
                    { field: "CreditCard", width: 120 }],
        onRegisterApi: function (gridApi) {
            $scope.grid1Api = gridApi;
        }
    };

Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to