Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

194
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda