[CLOSED] apply css in docked summary

  1. #1

    [CLOSED] apply css in docked summary

    Hello in the following example:

    https://examples5.ext.net/#/GridPane...group_headers/


    How can I apply css styles only to the last line of grand totals?

    thanks!
    Last edited by fabricio.murta; Nov 13, 2020 at 12:07 AM.
  2. #2
    Hello @JCarlosF!

    There's no support to customize colors of the docked summary component through configuration directives.

    But using CSS rules you can select its DOM sub-components and restyle only and only the docked summary row.

    For instance in the example you pointed, see two custom CSS styles starting with .grid-row-summary? Just duplicate them and prepend .x-docked-summary to the CSS rule. These rules will affect the docked summary but won't hit the individual groups' summary rows inside the grid.

    To understand why this works, just load the example and open browser's developer tools and inspect page DOM down to the summary row. You can just right-click anywhere within the summary row and click "inspect" so that developer tools opens with their respective DOM element highlighted. If you compare that row to other summary rows in the DOM, this is the only one "wrapped" by a div assigned to the x-docked-summary CSS class.

    For instance if you wanted to style just the locked part/columns of that row, you could also add .x-grid-inner-locked CSS rule to limit even more what gets the custom styles (the other part of the grid is wrapped by .x-grid-inner-normal). This is not really an Ext.NET or Ext JS trait, this is simply pure CSS override given the various CSS classes every components and components-of-components get. You can do similar things even to the same components if you give them specific Cls="myCssClass" specifications.

    Hope this helps! Understanding this concept might help you custom-style your pages in the long run, so might be worth the read.
    Fabrício Murta
    Developer & Support Expert
  3. #3
    excellent, it works with .x-docked-summary

    thanks!
  4. #4
    Glad it helped, thanks for the feedback!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] How to apply css on component FieldLabel
    By Daly_AF in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 11, 2013, 6:55 AM
  2. how to apply css for dataview empty text?
    By i3class in forum 1.x Help
    Replies: 1
    Last Post: May 23, 2012, 10:22 AM
  3. [CLOSED] GridPanel: apply css on column
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 24, 2010, 8:53 PM
  4. [CLOSED] Is it possible to apply CSS to a node text in a TreePanel?
    By flormariafr in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 04, 2010, 4:07 PM
  5. [CLOSED] Css apply
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Apr 30, 2009, 10:20 AM

Posting Permissions