                (.resizeCanvas grid)
                (.invalidateAllRows grid)
                (.render grid)
-               (init-sg-pager grid dataview))))))))
+               (init-sg-pager grid dataview :page-count total-page-count))))))))
 
 ;; OM COMPONENTS
 

         :name label :toolTip label :sortable true
         :formatter (partial formatter field language)})))))

(defn- init-sg-pager [grid dataview]
  (let [Pager (.. js/Slick -Controls -Pager)]
    (Pager. dataview grid (js/jQuery (str "#" pager-id)))))

(def sg-options
  "Options to feed the slickgrid constructor."

        SlickGrid (.. js/Slick -Grid)
        DataView (.. js/Slick -Data -DataView)
        dataview (DataView.)
        grid (SlickGrid. (str "#" table-id) dataview columns sg-options)
        {{{:keys [num-displayed-records total-page-count]} :paging} :table-page}
        @shared/app-state]
    ;; dataview / grid hookup
    (bind-external-slick-grid-event-handlers grid external-event-handlers)
    (.subscribe (.-onRowCountChanged dataview)
