showing results for - "devexpress custom column field"
Isabelle
08 Apr 2018
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});