Answers for "devexpress custom text column field"

0

devexpress custom text column field

$(function () {
    $("#dataGridContainer").dxDataGrid ({
        // ...
        columns: [{
            caption: "Product Link",
            allowFiltering : false,
            allowSorting : false,
            cellTemplate : function (cellElement, cellInfo) {
                //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
            	cellElement.append ("<a class=\"btn\" href=\"/CreateOrder?b=" + cellInfo.data.brandName + "&n=" + cellInfo.data.modelName + "\">Go to Product</a>");
            }
        }]
    });
});
Posted by: Guest on February-27-2020

Code answers related to "devexpress custom text column field"

Code answers related to "Javascript"

Browse Popular Code Answers by Language