mleibman / SlickGrid

A lightning fast JavaScript grid/spreadsheet
http://wiki.github.com/mleibman/SlickGrid
MIT License
6.81k stars 1.98k forks source link

Is there any api provided to set slick grid size (width & height) programmatically / dynamically ? #1096

Open Veerbhadra277 opened 8 years ago

Veerbhadra277 commented 8 years ago

Hi,

Currently i am using '$("#myGrid").resizable()', and 'forceFitColumns: true', Which provides traditional way to resize control, is there any way through which i could set slickGrid height and width ?.

Thanks in advance !!

Regards, Veer

6pac commented 8 years ago

In the examples, just setting the container element size is used. I think if you do that and call .refresh() it will probably work.

royling commented 8 years ago

As documented, it's to call .resizeCanvas instead - https://github.com/mleibman/SlickGrid/wiki/Slick.Grid#resizeCanvas