Appframe Knowledge Base


1 hits
1

How to make a URL column into a link to that url

gridSomething.attachEvent("onFormatCellValue", function(pCell) {
    if (pCell.fieldName === "URL") {
        var vEscapedURL = af.common.htmlEscape(pCell.dataRow.URL);
        pCell.value = '<a href="' + vEscapedURL  + '">' + vEscapedURL + '</a>';
    }
});

components web · Perma link post comment Posted by: Jan Henrik H. Meling (21-okt-2013)