Added a clamp() method to number and date inputs. Improved grid's pagination