function removeClassIcon(){
    var icons = document.querySelectorAll(".blue");
    icons.forEach(function(icon) {
        icon.classList.remove("blue");
    });
    icons = document.querySelectorAll(".red");
    icons.forEach(function(icon) {
        icon.classList.remove("red");
    });
    icons = document.querySelectorAll(".green");
    icons.forEach(function(icon) {
        icon.classList.remove("green");
    });
    icons = document.querySelectorAll(".orange");
    icons.forEach(function(icon) {
        icon.classList.remove("orange");
    });
    icons = document.querySelectorAll(".gray");
    icons.forEach(function(icon) {
        icon.classList.remove("gray");
    });
    
}
function SelectRaioButton(){
    var linhas = document.querySelectorAll("table tr")
    linhas.forEach(function(linha){
         if (linha.id !== "builder_datagrid_check_all_tr"){
            var checkbox = linha.querySelector("input[type='checkbox']")
            linha.style.cursor = "pointer"
            linha.addEventListener("click", function(event) {
                if (event.target.id === "builder_datagrid_check_all") {
                    checkbox = ''
                    linha.style.cursor = ''
                    return
                }
                
                checkbox.checked = !checkbox.checked
            })
        }
    })
    var selectAllCheckbox = document.getElementById('builder_datagrid_check_all');
    var tableCheckboxes = document.querySelectorAll('.tdatagrid_col input[type="checkbox"]');
    selectAllCheckbox.addEventListener('click', function() {
      for (var i = 0; i < tableCheckboxes.length; i++) {
        tableCheckboxes[i].checked = selectAllCheckbox.checked;
      }
    });
    
    for (var i = 0; i < tableCheckboxes.length; i++) {
      tableCheckboxes[i].addEventListener('click', function() {
        if (!this.checked) {
          selectAllCheckbox.checked = false;
        }
      });
    }
}