Change Grid Button background color


#1

is there a way to change Grid button background color upon click that button?


#2

Do you mean the Grid control or the Button control? Which framework?


#3

If you use button in grid look:

var buttonClick = false;

        var cellclass = function (row, columnfield, value) {
            if (row == 1) {
                if (buttonClick == true) {
                    return "green";
                }
            }

See http://www.jqwidgets.com/community/topic/change-row-background-color-on-button-click/