{ name: 'transfer_num', title: 'Number',renderWith: function(data, type,
full, meta){
return '<a
ng-click="onEditLink(url)">'+Link+'</a>'; }},
for (var k = 0; k < listing.columns.length; k++) {
var listColumn = listing.columns[k];
var column =
DTColumnBuilder.newColumn(listColumn.name).withOption('type', 'num');
column.withTitle(listColumn.title);
if(listColumn.class){
column.withClass(listColumn.class);
}
=================== render with callback ============
if (listColumn.renderWith) {
column.renderWith(listColumn.renderWith);
}
===============
var colIndex = k;
if (idColumn) {
colIndex = k+1;
}
if (listing.srNumber) {
colIndex = k+2;
}
Please check this code may help to u
On Wed, Sep 5, 2018 at 12:09 PM jaffer sadiq <[email protected]> wrote:
> Hi,
> I am using UI grid in angular js with MVC. How to add heperlink in one of
> the column(Data). Once click the column it should show new window(pop up)
>
> my ui grid :
>
> $scope.gridOptions = {
> data: 'SearchGridData',
> enableSorting: true,
> paginationPageSizes: [25, 50, 75],
> paginationPageSize: 5,
> columnDefs: [
> { field: "TransactionID", width: 120 },
> { field: "Date", width: 120 },
> { field: "OrderID", width: 120 },
> { field: "OrderName", width: 120 },
> ].
>
> I need to show hyperlink in transaction id. once click it should show new
> window like pop up. how to achieve this in angula js
>
> 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.
>
--
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.