From 916e373e32ebeba0c4bca653de8cf7bacf2d2405 Mon Sep 17 00:00:00 2001 From: turbosasa Date: Fri, 28 Nov 2014 11:27:53 +0200 Subject: [PATCH] Do not show footer if there is no data for showing. Fix for issue #46 --- src/jsx/reactGrid.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jsx/reactGrid.jsx b/src/jsx/reactGrid.jsx index 5ebd738..98449f0 100644 --- a/src/jsx/reactGrid.jsx +++ b/src/jsx/reactGrid.jsx @@ -575,6 +575,9 @@ var ngReactGridComponent = (function() { var ngReactGridFooter = React.createClass({ render: function() { + if (this.props.grid.totalCount == 0) { + return null; + } return (