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

199
Visualizações
Dev-extreme pivot grid headers styling is not working properly when applying it from code

I am working on dxpivotgrid(component of dev-extreme) of dev-extreme. Initially I was applying style in onContentReady() event. when I was applying bigger font size on the header of pivot grid it was make the font size bigger but it do not increase the size field panels.

Picture of Field Panel after applying styling on panel:

enter image description here

I have used the following code in onContentReady()

const elements: any = document.querySelectorAll('.dx-pivotgrid-fields-area-head .dx-area-field ');
  if (elements !== null && elements.length > 0) {
    elements.forEach((element: any) => {
      element.style.backgroundColor = this._CrossFormating.fieldsBackColor;
      element.style.color = this._CrossFormating.fieldsForeColor;
      element.style.fontWeight = this._CrossFormating.fieldFont.isBold ? 'bold' : '';
      element.style.fontStyle = this._CrossFormating.fieldFont.isItalic ? 'italic' : '';
      element.style.textDecoration = this._CrossFormating.fieldFont.isUnderline ? 'underline' : '';
      element.style.fontFamily = this._CrossFormating.fieldFont.fontFamily;
      element.style.fontSize = this._CrossFormating.fieldFont.size.toString() + 'px';
    });
  }

But when I use the same code in onCellPrepared() event it behave a bit different. While debugging the code I have fond that it is working properly but when the event ends then it applies the default style on field panel which is provided by dev-extreme. Picture of that issue is shown below

After ending of event onCellPrepared():

enter image description here

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