Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access slickgrid object by selector

How to access slickgrid object by selector after it has be initalized for example throught selector #myGrid.

Thanks!

like image 585
Jor Avatar asked Feb 03 '26 03:02

Jor


1 Answers

// init & store
grid = new Slick.Grid("#myGrid", data, columns, options);
$("#myGrid").data("gridInstance", grid);

// access later on
$("#myGrid").data("gridInstance").resizeCanvas();
like image 197
Tin Avatar answered Feb 05 '26 08:02

Tin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!