devextreme custom dxdatagrid field

Solutions on MaxInterview for devextreme custom dxdatagrid field by the best coders in the world

showing results for - "devextreme custom dxdatagrid field"
Alessandro
14 Nov 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});