Ramco Ramco

Ramco Ramco

  • 469
  • 2.8k
  • 392.5k

Tick Sign should be displayed

Jun 17 2021 12:49 PM

Hi

  I have below code & i want it is true then - fa fa-check should be displayed instead of CheckBox.

{
                data: "IsActive",
                render: function (data, type, row) {
                    if (data == true) {
                        return '<input type="checkbox" checked>';
                    } else {
                        return '<input type="checkbox">';
                    }
                    return data;
                }
            },

Thanks


Answers (1)