Changeset 25165 in main


Ignore:
Timestamp:
05/02/22 12:44:44 (7 months ago)
Author:
GarthBraithwaite_STG
Message:

300 - test for kendo grid footer before setting style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0.0/ibisph-view/src/main/webapp/xslt/json/Kendo.xslt

    r25158 r25165  
    502502                                expandButton.title="Click here to expand grid to full width";
    503503                                expandButton.totalColumnsWidth = totalColumnsWidth;     
    504                                 this.element[0].querySelector(".k-grid-footer-wrap table").style.width = "100%";       
     504                               
     505                                var gridFooterWrapTable = this.element[0].querySelector(".k-grid-footer-wrap table");
     506                                if(gridFooterWrapTable) gridFooterWrapTable.style.width = "100%";       
    505507                        }
    506508                        else if(this.options.ibis.expandContainerClass)
     
    519521                // no matter what sizing is applied need to set the footer width to auto
    520522                // because kendo code sets: padding-right: 17px; and width to container width.
    521                 this.element[0].querySelector(".k-grid-footer").style.width = "auto";
     523                var gridFooter = this.element[0].querySelector(".k-grid-footer");
     524                if(gridFooter) gridFooter.style.width = "auto";
    522525        ]]>
    523526        }
Note: See TracChangeset for help on using the changeset viewer.