KingFish
KingFish

Reputation: 9153

Slickgrid: Forcing the Grid to Reload

I have a grid,

 grid = new Slick.Grid("#myGrid", loader.data, columns, options);

How do I get the grid to reload? I'm using a remote model as by the examples as provided by the slickgrid documentation.

I want to force the reload based on clicking a button.

Thanks

Upvotes: 1

Views: 2424

Answers (1)

KingFish
KingFish

Reputation: 9153

I found my problem.

I'm using the remotemodel from Slickgrid's examples. The problem I had was I did not "clear()" the data. The "clear()" function deleted all of the old data it contained. I then invalidated and everything worked.

Upvotes: 1

Related Questions