This is a migrated thread and some comments may be shown as answers.

href link does not work in grid column

1 Answer 271 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ismael
Top achievements
Rank 1
Ismael asked on 23 Nov 2016, 04:27 PM

Hello Kendo UI Team,

We are developing a grid with a column value as a link
this is the code:

columns: [{
    field: "OrderID",
    title: "ORDER #",
    template: function (data) {
        var url = getUrlWithLocale("/Account/OrderHistory/GetOrderDetails/");
        return "<a id='btnViewDetails' data-orderID='" + data.OrderID + "' href='" + url + data.OrderID + "/Ds'>" + data.OrderID + "</a>";
    }
},

 

It is working fine except because the link does not work, however if you use the right click and select the option open link in a new tab works fine,

Could you please assist with this issue?

Thanks in advance!

 

1 Answer, 1 is accepted

Sort by
0
Ismael
Top achievements
Rank 1
answered on 24 Nov 2016, 03:44 PM
This is working fine now
Tags
Grid
Asked by
Ismael
Top achievements
Rank 1
Answers by
Ismael
Top achievements
Rank 1
Share this question
or