Answers for "devexpress dxdatagrid custom text field link"

0

devexpress dxdatagrid custom text field link

$(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 dxdatagrid custom text field link"

Code answers related to "Javascript"

Browse Popular Code Answers by Language