Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

158
Visualizações
Get the name of parent that is checkbox selected in a gijgo tree

I have the following Gijgo tree and use this code to get all the selected items when a change is made

Tree.on('checkboxChange', function (e, $node, record, state) {
    var dr;
    if (state != 'indeterminate') {
        $.each(Areas, function (i, e) {
            if (e.name == record.text) {
                dr = e;                    
                return false;
            }
        });
        if (dr != undefined) {
         //do stuff
        }

How do I get the name OKX first. At the moment when I check the OKX box the above will start with D613 and do the rest at that level and OKX will be last. Is there a way to get OKX ('the parent') out before the other sub items. (Note: OKX is not a member of the group "Areas" but D613 , D652 etc are, if that helps)

enter image description here

Thank you

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda