Changeset 25164 in main


Ignore:
Timestamp:
05/02/22 12:44:24 (2 weeks ago)
Author:
GarthBraithwaite_STG
Message:

view - test for kendo grid footer before setting style.

File:
1 edited

Legend:

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

    r25157 r25164  
    563563                                expandButton.title="Click here to expand grid to full width";
    564564                                expandButton.totalColumnsWidth = totalColumnsWidth;     
    565                                 this.element[0].querySelector(".k-grid-footer-wrap table").style.width = "100%";       
     565
     566                                var gridFooterWrapTable = this.element[0].querySelector(".k-grid-footer-wrap table");
     567                                if(gridFooterWrapTable) gridFooterWrapTable.style.width = "100%";       
    566568                        }
    567569                        else if(this.options.ibis.expandContainerClass)
     
    580582                // no matter what sizing is applied need to set the footer width to auto
    581583                // because kendo code sets: padding-right: 17px; and width to container width.
    582                 this.element[0].querySelector(".k-grid-footer").style.width = "auto";
     584                var gridFooter = this.element[0].querySelector(".k-grid-footer");
     585                if(gridFooter) gridFooter.style.width = "auto";
    583586        ]]>
    584587        }
Note: See TracChangeset for help on using the changeset viewer.