devexpress dxdatagrid custom text field link

Solutions on MaxInterview for devexpress dxdatagrid custom text field link by the best coders in the world

showing results for - "devexpress dxdatagrid custom text field link"
Lukas
04 Feb 2019
1$(function () {
2    $("#dataGridContainer").dxDataGrid ({
3        // ...
4        columns: [{
5            caption: "Product Link",
6            allowFiltering : false,
7            allowSorting : false,
8            cellTemplate : function (cellElement, cellInfo) {
9                //cellinfo is a large array, you can console.log(cellInfo) to get a look at it's structure to see what you need to grab
10            	cellElement.append ("<a class=\"btn\" href=\"/CreateOrder?b=" + cellInfo.data.brandName + "&n=" + cellInfo.data.modelName + "\">Go to Product</a>");
11            }
12        }]
13    });
14});