jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Or easy just:

    var cellsrenderer = function (row, columnfield, value, defaulthtml, columnproperties) {
    var data = $("#jqxgrid").jqxGrid('getrowdata', row);
    if (data.isCheck) {
    return '<span style="margin: 4px; float: ' + columnproperties.cellsalign + '; font-weight: bold; text-decoration: underline">' + value + '</span>';
    } else {
    return defaulthtml;
    }
    }

    I understood!

    There is no need use updaterow function, just use cellsrenderer.

    Sample cellsrenderer function:

    var cellsrenderer = function (row, columnfield, value, defaulthtml, columnproperties) {
    var data = $("#jqxgrid").jqxGrid('getrowdata', row);
    if (data.isCheck) {
    return '<span style="margin: 4px; float: ' + columnproperties.cellsalign + '; font-weight: bold; text-decoration: underline">' + value + '</span>';
    } else {
    return '<span style="margin: 4px; float: ' + columnproperties.cellsalign + '; font-weight: normal;">' + value + '</span>'
    }
    }

    Where variable isCheck is a input checkbox.

Viewing 2 posts - 1 through 2 (of 2 total)